Results for “State”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Concepts
- State management3.47.7state
widgets rebuild. Keep state that only one widget cares about in a StatefulWidget; lift state that several screens share above them, expose it through an InheritedWidget
- Widgets and the widget lifecycle3.47.7widgets
objects; a new widget instance is cheap and is created on every build. StatelessWidget: build() depends only on its constructor arguments and BuildContext. StatefulWidget creates a State
- Forms and validation3.47.7forms
text. FocusNode controls which field has the keyboard: create it once in State, pass it to the field, call requestFocus() to move focus, and dispose() it with
- Networking and JSON3.47.7data
build), hand the Future to a FutureBuilder to show loading, error and data states, and move decoding of very large payloads onto a background isolate with compute
- Performance3.47.7performance
budget allows. Keep build() cheap and scoped (const widgets, small StatefulWidgets, lazy lists), avoid saveLayer-triggering effects such as Opacity and clipping in animations, and measure in profile
- Animations3.47.7animation
Reach for an implicit animation first: give AnimatedContainer, AnimatedOpacity or TweenAnimationBuilder a
- Accessibility3.47.7accessibility
Flutter builds a semantics tree next to the render tree and hands
- Platform integration and platform channels3.47.7platform
A platform channel is a named, asynchronous message pipe between your Dart
- Testing3.47.7testing
Flutter has three test levels: unit tests (package:test) for plain Dart
- Navigation and routing3.47.7navigation
Navigator keeps a stack of Route objects; Navigator.push adds a route built