Results for “State”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Guides
- Add interactivity to your Flutter appdoc
respond to taps. How to create a custom widget. The difference between stateless and stateful widgets. In this tutorial, you'll add interactivity to an app that
- Differentiate between ephemeral state and app statedoc
tell the difference between ephemeral and app state. This doc introduces app state, ephemeral state, and how you might manage each in a Flutter
- 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
- Flutter architectural overviewdoc
code as possible. During development, Flutter apps run in a VM that offers stateful hot reload of changes without needing a full recompile. For release, Flutter apps
- State managementdoc
Content covering state management in Flutter apps
- State managementdoc
structure an app to manage the state of the data flowing through it. and wonder why your app's state is lost on a restart, check
- State management in Flutterdoc
ChangeNotifier and manage loading, success, and error states. Introduction When developers talk about state-management in Flutter, they're essentially referring to the pattern by which
- Approaches to state managementdoc
introduction to different approaches to managing state in Flutter apps. State management is a complex topic. If you feel that some of your questions haven
- 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
- Simple app state managementdoc
simple form of state management. Now that you know about declarative UI programming and the difference between ephemeral and app state , you are ready to learn
- 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 the box in and out. 1. Create
- Guide to app architecturedoc
The recommended way to architect a Flutter app. The following pages demonstrate
- Animations API overviewdoc
their build functions directly by reading their current value and listening to their state changes or they can use the animations as the basis of more elaborate
- Common architecture conceptsdoc
Learn about common architecture concepts in application design, and how they apply
- How Flutter worksdoc
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
- Start thinking declarativelydoc
declarative . This means that Flutter builds its user interface to reflect the current state of your app: Source drawing for the png above: : https://docs.google.com/drawings/d/1RDcR5LyFtzhpmiT5-UupXBeos2Ban5cUTU0-JujS3Os/edit?usp=sharing When
- 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 by rebuilding
- Staggered animationsdoc
How to write a staggered animation in Flutter. A staggered animation consists
- Understanding Flutter's keyboard focus systemdoc
How to use the focus system in your Flutter app. This article
- 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
- Writing custom platform-specific codedoc
Learn how to write custom platform-specific code in your app. This
- Animations tutorialdoc
A tutorial showing how to build explicit animations in Flutter. How to
- Performance best practicesdoc
How to ensure that your Flutter app is performant. Generally, Flutter applications
- Animate a widget using a physics simulationdoc
springing motion. Step 1: Set up an animation controller Start with a stateful widget called DraggableCard : Make the _DraggableCardState class extend from SingleTickerProviderStateMixin . Then construct an AnimationController
- Tap, drag, and enter textdoc
tapping, and dragging. enterText() tap() drag() In many cases, user interactions update the state of the app. In the test environment, Flutter doesn't automatically rebuild widgets
- Create widgetsdoc
Learn about stateless widgets and how to build your own. Learn to create custom widgets and use the most common SDK widgets like Container, Center, and Text. Before
- Fetch data from the internetdoc
How to fetch data over the internet using the http package. Fetching
- Introduction to animationsdoc
How to perform animations in Flutter. Well-designed animations make a UI
- Animate a widget across screensdoc
screen and back and Handle taps recipes. import 'package:flutter/material.dart'; class MainScreen extends StatelessWidget { const MainScreen({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const
- Pass arguments to a named routedoc
How to pass arguments to a named route. The Navigator provides the
- Fetch data from the internetdoc
into three layers: Model : Handles data operations. View : Displays the UI. ViewModel : Manages state and connects the two. The core tenet of MVVM (and many other patterns
- Focus and text fieldsdoc
How focus works with text fields. When a text field is selected
- Send data to a new screendoc
Create a Todo screen to display the list For this, we create a StatelessWidget . We call it TodosScreen . Since the contents of this page
- 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
- Accessibilitydoc
ages. The UN Convention on the Rights of Persons with Disabilities states the moral and legal imperative to ensure universal access to information systems; countries around
- User inputdoc
Accept input from the user with buttons and text fields. Learn to
- Layouts in Flutterdoc
Learn how Flutter's layout mechanism works and how to build your
- Simple animationsdoc
Learn the simplest way to implement animations in Flutter. Flutter provides a
- Architecting Flutter appsdoc
architecture Common architectural principles The Flutter team's recommended app architecture MVVM and state management Dependency injection Common design patterns for writing robust Flutter applications TODO @ewindmill
- Send data to the internetdoc
How to use the http package to send data over the internet
- Layoutdoc
Learn about common layout widgets in Flutter. Learn how to build layouts
- An introduction to widget testingdoc
Learn more about widget testing in Flutter. In the introduction to unit
- Navigation and routingdoc
Overview of Flutter's navigation and routing features Flutter provides a complete
- Build and release an Android appdoc
How to prepare for and release an Android app to the Play