Results for “StatefulWidget”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Guides
- Stateful widgetsdoc
Learn about StatefulWidgets and rebuilding Flutter UI. Learn when widgets need to be stateful and how to trigger UI updates with setState. Introduction So far, your
- Fade a widget in and outdoc
following steps: Create a box to fade in and out. Define a StatefulWidget . Display a button that toggles the visibility. Fade
- Add interactivity to your Flutter appdoc
both. You can get right to touching the code in Step 2: Subclass StatefulWidget . If you want to try different ways of managing state, skip
- Animate the properties of a containerdoc
radius when the user taps a button using the following steps: Create a StatefulWidget with default properties. Build an AnimatedContainer using the properties. Start the animation
- Differentiate between ephemeral state and app statedoc
How to tell the difference between ephemeral and app state. This doc
- Performance best practicesdoc
How to ensure that your Flutter app is performant. Generally, Flutter applications
- Flutter architectural overviewdoc
A high-level overview of the architecture of Flutter, including the core
- Retrieve the value of a text fielddoc
resources used by the object. // Define a custom Form widget. class MyCustomForm extends StatefulWidget { const MyCustomForm({super.key}); @override State createState() => _MyCustomFormState(); } // Define a corresponding State class. // This
- Build a form with validationdoc
also allows you to validate the form later. Create the form as a StatefulWidget . This allows you to create a unique GlobalKey () once. You can then store
- LayoutBuilder and adaptive layoutsdoc
foundation Create lib/screens/adaptive_layout.dart and start with the following basic structure: This is a StatefulWidget because the adaptive layout eventually
- Rebuild UI when state changesdoc
Because it must explicitly initialize data fetching before rendering, implement it as a StatefulWidget . Start by creating the basic stateful structure: Instantiate the article view model Next
- How Flutter worksdoc
Flutter Works" dives deep into the State class, a critical piece behind every StatefulWidget . Follow the full lifecycle of a State object—from initState , where you initialize
- An introduction to widget testingdoc
Learn more about widget testing in Flutter. In the introduction to unit
- User inputdoc
Accept input from the user with buttons and text fields. Learn to