Gordon  Murray

Gordon Murray


The Stateful Widget Lifecycle

One of the most common questions in Flutter job interviews

Unlike stateless widgets that we have to destroy and create again every time we want to make some change, stateful widgets have mutable state.One of the questions that often appear in job interviews revolves around the lifecycle of a stateful widget, hence the article dedicated to this topic.

Seven Cycles of StatefulWidget

When Flutter builds a stateful widget, it first executes the constructor function of the widget and then calls the createState() method. If we look at the stateful widget, the constructor function is executed first. On the other hand, if we look at the State object of the stateful widget, its lifecycle starts when the createState() method is called.

Note: The _constructor_ function is not part of the lifecycle because the state of the _widget_ property is empty at that time.

Diagram showing lifecycle of stateful widget

#android #flutter #programming

What is GEEK

Buddha Community

The Stateful Widget Lifecycle

I am Developer


Country State City Dropdown list in PHP MySQL PHP

Here, i will show you how to populate country state city in dropdown list in php mysql using ajax.

Country State City Dropdown List in PHP using Ajax

You can use the below given steps to retrieve and display country, state and city in dropdown list in PHP MySQL database using jQuery ajax onchange:

  • Step 1: Create Country State City Table
  • Step 2: Insert Data Into Country State City Table
  • Step 3: Create DB Connection PHP File
  • Step 4: Create Html Form For Display Country, State and City Dropdown
  • Step 5: Get States by Selected Country from MySQL Database in Dropdown List using PHP script
  • Step 6: Get Cities by Selected State from MySQL Database in DropDown List using PHP script


#country state city drop down list in php mysql #country state city database in mysql php #country state city drop down list using ajax in php #country state city drop down list using ajax in php demo #country state city drop down list using ajax php example #country state city drop down list in php mysql ajax

Elliott  Owen

Elliott Owen


Exploring Flutter Widgets || Flutter Stateful Widget & Text Field #11

In this video I have discussed about stateful widget and also discussed how to work with text field in flutter.

#statefulwidget #ripplescode #flutter #flutter stateful widget #text field #exploring flutter widgets

I am Developer


Country State City Drop Down List using Ajax in Laravel

Here, i will show you how to create dynamic depedent country state city dropdown list using ajax in laravel.

Country State City Dropdown List using Ajax in php Laravel

Follow Below given steps to create dynamic dependent country state city dropdown list with jQuery ajax in laravel:

  • Step 1: Install Laravel App
  • Step 2: Add Database Details
  • Step 3: Create Country State City Migration and Model File
  • Step 4: Add Routes For Country State City
  • Step 5: Create Controller For Fetch Country State City
  • Step 6: Create Blade File For Show Dependent Country State City in Dropdown
  • Step 7: Run Development Server


#how to create dynamic dropdown list using laravel dynamic select box in laravel #laravel-country state city package #laravel country state city drop down #dynamic dropdown country city state list in laravel using ajax #country state city dropdown list using ajax in php laravel #country state city dropdown list using ajax in laravel demo

Humberto  Ratke

Humberto Ratke


What is DevOps Lifecycle? | How to manage yours

From conceptualization to deployment, the process of developing software applications or web applications is complex. By going through several intricate phases of development, a web application or software is tested on multiple levels before being proceeded into production.

In most cases, software application development becomes time-consuming due to its specifications and complexities. In order to deliver the application in a short span of time, software developers are following a universal set of practices called the DevOps lifecycle.

So, what is DevOps in the world of software application development? Let’s deep dive into its meaning, uses, as well as each critical phase in the DevOps lifecycle.

#devops #devops tutorial #devops lifecycle tools #devops lifecycle blocks #devops lifecycle phases #lifecycle of devops

Lawson  Wehner

Lawson Wehner


Explore Widget Lifecycle In Flutter

Flutter is a mobile framework that helps to modernize both iOS and Android app from a single codebase. It is a combination of stateful and stateless widgets. Like all frameworks, Flutter also has a lifecycle associated with all the apps that our Flutter app uses. is managed by lifecycle In this article, we will take a look at different types of apps available in the flutter app, lifecycle.

In this article, we will explore the Widget Lifecycle in Flutter. We will also implement a Widget Lifecycle demo, describe its properties, and use them in your flutter applications. So let’s get started.

Table of Contents :


Widget Lifecycle

Widget Lifecycle Method

Code Implementation

Code File


Flutter :

“ Flutter is Google’s UI toolkit that helps you build beautiful and natively combined applications for mobile, web, and desktop in a single codebase in record time, Flutter offers great developer tools, with amazing hot reload”

Widget Lifecycle :

Everything in Flutter is a Widget, so before knowing about Lifecycle, we should know about Widgets in Flutter.

There are two types of widgets in Flutter.

  • Stateless Widgets.
  • Stateful Widgets.

Before knowing about the Lifecycle, we need to understand the difference between the two widgets.

=> Stateless Widgets: Stateless Widgets in Flutter are those widgets whose state once created cannot be changed, it becomes immutable like on variables, buttons, icons, etc., or any state that cannot be changed on the app to retrieve data. Returns a widget by overwriting the build method. We use it when the UI relies on the information inside the object itself.

#flutter-widget #dart #lifecycle-methods #flutter