Results for “State”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Version changes
- TestTextInput state reset1.17.0breaking
state of a `TestTextInput` instance, a stub for the system's onscreen keyboard, is now reset between tests. The state of `WidgetTester.testTextInput` is now reset before
- Prevent `StateError: Bad state: Future already completed in Symbolizer` during stack symbolization.3.47.2bugfix
Prevent `StateError: Bad state: Future already completed in Symbolizer` during stack symbolization
- Added AppLifecycleState.hidden3.13.0breaking
the application is in when `WidgetsBindingObserver.didChangeAppLifecycleState` is called. If code has switch statements that handle all cases of the `AppLifecycleState` enum, a new case will need
- ThemeData's toggleableActiveColor property has been deprecated3.7.0deprecated
ThemeData(); MaterialApp( theme: theme.copyWith( switchTheme: SwitchThemeData( thumbColor: MaterialStateProperty.resolveWith<Color?>( (Set states) { if (states.contains(MaterialState.disabled)) { return null; } if (states.contains(MaterialState.selected)) { return myColor
- Updated Checkbox.fillColor behavior3.13.0breaking
customize the checkbox. Code before migration: ```dart Checkbox( fillColor: MaterialStateProperty.resolveWith((states) { if (!states.contains(MaterialState.selected)) { return Colors.red; } return null; }), value: _checked, onChanged: _enabled ? (bool? value) { setState(() { _checked = value
- Actions API revision1.20.0breaking
rather than an `Intent(TheAction.key)` instance. Code before migration: ```dart class MyWidget extends StatelessWidget { // ... @override Widget build(BuildContext context) { return Shortcuts( shortcuts: <LogicalKeySet, Intent> { LogicalKeySet(LogicalKeyboardKey.enter): Intent(ActivateAction.key
- Rename MaterialState to WidgetState3.22.0breaking
states) => resolveCallback(states) ?? MouseCursor.uncontrolled; } BorderSide side = MaterialStateBorderSide.resolveWith((Set states) { if (states.contains(MaterialState.selected)) { return const BorderSide(color: Colors.red); } return null; }); ``` Code after migration: ```dart WidgetState selected
- - Bad state exception can occur when HTTPS connection attempt errors or is aborted2.0.2bugfix
state exception can occur when HTTPS connection attempt errors or is aborted
- Migrate to widget state3.38.0improvement
Migrate to widget state (Material, by @ValentinVignal
- Migrate to widget state3.38.0improvement
Migrate to widget state (Material, by @ValentinVignal
- Fix ADB device list parsing for long wireless mDNS serials separated from state by a single space.3.47.1bugfix
device list parsing for long wireless mDNS serials separated from state by a single space
- Rebuild optimization for OverlayEntries and Routes1.17.0breaking
implicit rebuilds you may see issues, which can be resolved by wrapping any state change in a `setState` call. Prior to this change, an `OverlayEntry` would rebuild
- Fix logic statements in year2023 documentation3.38.0bugfix
logic statements in year2023 documentation (Material, by @xVemu
- Add state restoration for UIScene migration3.38.0new-feature
state restoration for UIScene migration (iOS, by @vashworth
- Handle 'no permissions' adb device state3.47.0tooling
Handle 'no permissions' adb device state (Tooling, by @mboetger
- Fix VoiceOver does not announce state of ButtonSegment3.41.0bugfix
VoiceOver does not announce state of ButtonSegment (Material, by @huycozy). VoiceOver ButtonSegment
- Ensures initial semantics state is sent to engine3.38.0improvement
Ensures initial semantics state is sent to engine (Framework, by @chunhtai
- Fix SegmentedButton border doesn't reflect states3.38.0bugfix
SegmentedButton border doesn't reflect states (Material, by @bleroux). SegmentedButton
- [Windows] Propagate the enabled accessibility state3.47.0new-feature
Windows] Propagate the enabled accessibility state (Windows, by @loic-peron-inetum-public
- Update the doc on Google Testing to reflect the current state3.41.0improvement
Update the doc on Google Testing to reflect the current state (Other changes, by @chingjun
- Simplify `if-else` block into single `return` statement3.41.0improvement
Simplify `if-else` block into single `return` statement (Material, by @ValentinVignal
- feat(IconButton): add property to specify a states controller3.38.0new-feature
feat(IconButton): add property to specify a states controller (Material, by @ricardodalarme). IconButton
- refactors `FlutterPlugin.kt` to use one line statement in the `into` bloc3.38.0platform
refactors `FlutterPlugin.kt` to use one line statement in the `into` bloc (Android, by @AbdeMohlbi). FlutterPlugin.kt
- Fix Semantics expanded state not updating in PopupMenuButton and DropdownButton3.44.0bugfix
Semantics expanded state not updating in PopupMenuButton and DropdownButton (Material, by @AhmedLSayed9). PopupMenuButton DropdownButton
- [Material] modernize legacy switch statements to expressions across multiple files3.44.0improvement
Material] modernize legacy switch statements to expressions across multiple files (Material, by @Enderjua
- [a11y][android] In Android 16, sendWindowContentChangeEvent when check state changes3.44.0platform
a11y][android] In Android 16, sendWindowContentChangeEvent when check state changes (Android, by @hannah
- Fix expansion tile is missing state announcement on non-Apple platforms3.41.0bugfix
expansion tile is missing state announcement on non-Apple platforms (Material, by @huycozy
- Restore OpenGL state modified by fl_compositor_opengl_present_layers3.41.0platform
Restore OpenGL state modified by fl_compositor_opengl_present_layers (Linux, by @jason-simmons
- 180162 fix radio list tile and switch list tile accept widget states controller3.44.0bugfix
radio list tile and switch list tile accept widget states controller (Material, by @AnishTiwari5077
- fix(tool): initialize asset isModified state on startup to prevent 2x hot restart slowdown3.47.0tooling
tool): initialize asset isModified state on startup to prevent 2x hot restart slowdown (Tooling, by @kevmoo
- Trackpad gestures can trigger GestureRecognizer3.3.0breaking
Trackpad gestures on most platforms now send `PointerPanZoom` sequences and can trigger
- The new Form, FormField auto-validation API1.22.0breaking
build and every time it changes. Code before migration: ```dart class MyWidget extends StatelessWidget { @override Widget build(BuildContext context) { return FormField( autovalidate: true, builder: (FormFieldState state) { return
- TextInputClient currentTextEditingValue1.17.0breaking
references to views. Before this change, the Android-specific platform code could lose state information about editable text fields when the app moved back to the foreground
- Added enabled property and made onChanged optional for DropdownButtonunreleasedbreaking
DropdownButton` and `DropdownButtonFormField` now include an `enabled` property to explicitly manage their interactive state, and the `onChanged` callback is no longer marked as `required`. If you previously
- TextField requires MaterialLocalizations1.20.0breaking
migration: ```dart import 'package:material_ui/material_ui.dart'; void main() => runApp(Foo()); class Foo extends StatelessWidget { @override Widget build(BuildContext context) { return MediaQuery( data: const MediaQueryData(), child: Directionality( textDirection: TextDirection.ltr
- Adding 'linux' and 'windows' to TargetPlatform enum1.17.0breaking
were added to the `TargetPlatform` enum that could require additional cases in switch statements that switch on a `TargetPlatform` and don't include a `default:` case. The `TargetPlatform
- showAutocorrectionPromptRect method added to TextInputClient1.20.0breaking
your `TextInputClient` subclass. Code after migration: ```dart // Assume your `TextInputClient` is a `State` subclass, and it has a variable
- CupertinoTabBar requires Localizations parent1.17.0breaking
migration: ```dart import 'package:cupertino_ui/cupertino_ui.dart'; void main() => runApp(Foo()); class Foo extends StatelessWidget { @override Widget build(BuildContext context) { return MediaQuery( data: const MediaQueryData(), child: CupertinoTabBar( items: const
- Migrate ShortcutActivator and ShortcutManager to KeyEvent system3.16.0breaking
overly complex code, and the old system didn't properly represent the true state of key events on the system. APIs provided by the Flutter framework
- Deprecate ExpansionTileController in favor of ExpansibleController3.32.0deprecated
remember to dispose the new `ExpansibleController`. Code before migration: ```dart class _MyWidgetState extends State { final ExpansionTileController controller = ExpansionTileController(); @override Widget build(BuildContext context) { return ExpansionTile( controller: controller
- Windows: External windows should notify Flutter engine of lifecycle changes3.16.0breaking
Windows involves listening for Window messages in order to update the lifecycle state. In order for additional non-Flutter windows to affect the lifecycle state, they
- SnackBar with action no longer auto-dismisses3.38.0breaking
enabled. Now, all `SnackBar` widgets with an action default to a non-dismissible state until the user interacts with the action button. This change aligns with
- Deprecated RouteInformation.location3.13.0deprecated
migration: ```dart final String myPath = myRoute.uri.path; ``` Code before migration: ```dart class MyObserverState extends State with WidgetsBindingObserver { @override Future didPushRoute(String route) => _handleRoute(route); } ``` Code after migration: ```dart
- Page transitions replaced by ZoomPageTransitionsBuilder3.0.0breaking
In order to ensure that libraries follow the latest OEM behavior, the
- Migrate to standalone material_ui and cupertino_ui packagesunreleasedbreaking
The Material and Cupertino design libraries are now available as standalone packages
- New Buttons and Button Themes1.20.0breaking
A new set of basic material button widgets and themes have been
- Deprecate SystemContextMenuController.show3.32.0deprecated
default items under the hood. No migration is needed: ```dart class _MyWidgetState extends State { @override Widget build(BuildContext context) { TextField( contextMenuBuilder: (BuildContext context, EditableTextState editableTextState) { return SystemContextMenu.editableText
- Localized messages are generated into source, not a synthetic package3.32.0breaking
output path: output-dir: lib/src/generated/i18n ``` 2. **Update imports**. Update your Dart import statements to point to the new location of the generated files: ```dart // Before import 'package:flutter
- Adding TextInputClient.currentAutofillScope property1.20.0breaking
A new getter, `TextInputClient.currentAutofillScope`, was added to the `TextInputClient` interface; all `TextInputClient
- Dialogs' Default BorderRadius1.20.0breaking
radius: ```dart import 'package:material_ui/material_ui.dart'; void main() => runApp(Foo()); class Foo extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( floatingActionButton: FloatingActionButton(onPressed: () { showDialog( context
- Added BuildContext parameter to TextEditingController.buildTextSpan2.0.0breaking
TextEditingController.buildTextSpan`. With the `BuildContext` available, users can access `InheritedWidgets` inside `buildTextSpan` to retrieve state required to style the text, or otherwise manipulate the created `TextSpan`. `TextEditingController.buildTextSpan
- MouseTracker no longer attaches annotations1.17.0breaking
that used to call `MouseTracker.detachAnnotation`. This should not be a problem if no states are involved, otherwise you might want to add the mounted-exit check, especially
- IconData class marked as final3.44.0breaking
The `IconData` class is now marked as `final`, which prevents it from
- Dry layout support for RenderBox2.0.0breaking
expected to calculate the resulting size of the `RenderBox` without changing any internal state. It's essentially a dry run of `performLayout` that only calculates the resulting
- Migrate RawKeyEvent/RawKeyboard system to KeyEvent/HardwareKeyboard system3.19.0breaking
overly complex code, and the old system didn't properly represent the true state of key events on the system. The Flutter framework libraries have already been