Results for “Widget”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Version changes
- Rename MaterialState to WidgetState3.22.0breaking
related APIs, have been moved out of the Material library and renamed to `WidgetState`. A [Flutter fix][] is available to help migrate the `MaterialState` classes to `WidgetState
- When running flutter widget-preview start with Flutter Web disabled, an exception is thrown and the widget previewer fails to start.3.38.2bugfix
When running flutter widget-preview start with Flutter Web disabled, an exception is thrown and the widget previewer fails to start
- Widget preview command can crash on exit if in the middle of analyzing changes to a Dart file.3.38.2bugfix
Widget preview command can crash on exit if in the middle of analyzing changes to a Dart file
- Deprecate ButtonBar in favor of OverflowBar3.24.0deprecated
tied to the Material library and is part of the core `widgets.dart` library. Replace `ButtonBar` with `OverflowBar`, override the default alignment if necessary, replace `ButtonBar.buttonPadding` with `Padding` widget
- The Form widget no longer supports being a sliver3.35.0breaking
Previously, the Form widget essentially acted as a direct wrapper around its child. This design allowed a Form containing a sliver child (e.g., Form(child: other sliver
- - Adding a WidgetSpan widget causes web HTML renderer painting issue2.0.4bugfix
Adding a WidgetSpan widget causes web HTML renderer painting issue
- - Dragging the "draggable" widget causes widget to freeze in the overlay layer on Web2.0.4bugfix
Dragging the "draggable" widget causes widget to freeze in the overlay layer
- Redesigned the Radio widget3.35.0breaking
Introduced the `RadioGroup` widget to centralize `groupValue` management and the `onChanged` callback for a set of `Radio` widgets. As a result, the individual `Radio.groupValue` and `Radio.onChanged
- [widget-preview] Copy host web directory to widget preview scaffold3.47.0tooling
widget-preview] Copy host web directory to widget preview scaffold (Tooling, by @bkonyi
- Replaced parameters for customizing context menus with a generic widget builder3.7.0breaking
customize them using `ToolbarOptions` and `TextSelectionControls`. Now, they have been made composable using widgets, just like everything else in Flutter, and the specific configuration parameters have been
- `flutter widget-preview start` can crash if `.dart_tool/widget_preview_scaffold/.dart_tool` doesn't exist on subsequent runs.3.38.4bugfix
flutter widget-preview start` can crash if `.dart_tool/widget_preview_scaffold/.dart_tool` doesn't exist on subsequent runs
- Merge `widget_tester_leaks_free_test.dart` into `widget_tester_test.dart`3.44.0improvement
Merge `widget_tester_leaks_free_test.dart` into `widget_tester_test.dart` (Framework, by @dkwingsmt
- [ Widget Preview ] Move `--dtd-url` from a global flag to a `widget-preview start` option3.38.0tooling
Widget Preview ] Move `--dtd-url` from a global flag to a `widget-preview start` option (Tooling, by @bkonyi
- `flutter widget-preview start` crashes if a file named `pubspec.yaml` is modified outside the root of the previewed project.3.38.4bugfix
flutter widget-preview start` crashes if a file named `pubspec.yaml` is modified outside the root of the previewed project
- When DTD connection is lost or fails at startup during widget-preview on all platforms, the tool crashes with unhandled exceptions...3.44.2bugfix
When DTD connection is lost or fails at startup during widget-preview on all platforms, the tool crashes with unhandled exceptions instead of exiting gracefully
- The Visibility widget is no longer focusable by default when maintainState is enabled3.35.0breaking
would be focusable with keyboard events (see issue) due to the underlying `Visibility` widgets default behavior. The core change is the `Visibility` widget is no longer
- - `flutter widget-preview start` creates new cached build artifacts on each run, resulting in increasing disk usage after each run.3.38.6bugfix
flutter widget-preview start` creates new cached build artifacts on each run, resulting in increasing disk usage after each
- Deprecated the window singleton3.10.0deprecated
getter. Code before migration: ```dart Widget build(BuildContext context) { final double dpr = WidgetsBinding.instance.window.devicePixelRatio; final Locale locale = WidgetsBinding.instance.window.locale; return Text('The device pixel ratio
- [ Widget Preview ] Fix `WidgetInspectorService` override3.38.0tooling
Widget Preview ] Fix `WidgetInspectorService` override (Tooling, by @bkonyi). WidgetInspectorService
- ListTile reports an error in debug when wrapped in a colored widget3.44.0breaking
When a widget with a non-transparent background color, such as a `Container` or `ColoredBox` that sets `color`, sits between a `ListTile` and its nearest `Material` ancestor
- Moved ReorderableListView's localized strings3.13.0breaking
reorderItemDown`, `reorderItemLeft`, and `reorderItemRight` are deprecated and replaced by the same strings in `WidgetsLocalizations`. `ReorderableListView` uses these strings to annotate its semantics actions. To apply the same annotations
- [ Widget Preview ] Add embedded Widget Inspector support3.41.0tooling
Widget Preview ] Add embedded Widget Inspector support (Tooling, by @bkonyi
- Add TestWidgetsApp utility and refactor widget tests to use WidgetsApp3.44.0new-feature
TestWidgetsApp utility and refactor widget tests to use WidgetsApp (Framework, by @rkishan516). TestWidgetsApp WidgetsApp
- Material Chip button semantics2.0.0breaking
button` to all interactive Material Chips for accessibility purposes. The outermost `Semantics` widget that wraps all Chip classes to describe their semantic properties is modified. Interactive Material
- Scope widget inspector overlay to the selected widget's modal route3.47.0improvement
Scope widget inspector overlay to the selected widget's modal route (Framework, by @muhammadkamel
- [ Widget Preview ] Move widget_preview_scaffold tests to `dev/integration_tests/widget_preview_scaffold`3.44.0tooling
Widget Preview ] Move widget_preview_scaffold tests to `dev/integration_tests/widget_preview_scaffold` (Tooling, by @bkonyi
- [ Widget Preview ] Use analysis server for widget preview detection3.44.0tooling
Widget Preview ] Use analysis server for widget preview detection (Tooling, by @bkonyi
- The new Form, FormField auto-validation API1.22.0breaking
previous auto validation API for the `Form` and `FormField` widgets didn't control when auto validation should occur. So the auto validation for these widgets always
- [Tool] Handle DTD connection failures gracefully in widget-preview3.47.0tooling
Tool] Handle DTD connection failures gracefully in widget-preview (Tooling, by @bkonyi
- [Tool] Fix widget-preview crash by waiting for analysis server3.47.0tooling
Tool] Fix widget-preview crash by waiting for analysis server (Tooling, by @bkonyi
- Skip flutter widget-preview test that times out frequently3.47.0tooling
Skip flutter widget-preview test that times out frequently (Tooling, by @loic-sharma
- [ Widget Preview ] Forward Widget Inspector navigation events via DTD3.38.0tooling
Widget Preview ] Forward Widget Inspector navigation events via DTD (Tooling, by @bkonyi
- [ Widget Preview ] Fix crash when `widget_preview_scaffold/.dart_tool` doesn't exist3.41.0tooling
Widget Preview ] Fix crash when `widget_preview_scaffold/.dart_tool` doesn't exist (Tooling, by @bkonyi
- - New DatePicker widget is not fully localized1.20.2bugfix
DatePicker widget is not fully localized
- Selecting an implementation widget with the on-device inspector opens the code location for the nearest project widget3.38.0improvement
Selecting an implementation widget with the on-device inspector opens the code location for the nearest project widget (Framework, by @elliette
- - Fixes ImageFiltered flickers when widget is rendered on top3.16.5bugfix
Fixes ImageFiltered flickers when widget is rendered
- Deprecated just-in-time navigation pop APIs for Android Predictive Back3.16.0deprecated
Navigator.willPop`. ### Migrating from `WillPopScope` to `PopScope` The direct replacement of the `WillPopScope` widget is the `PopScope` widget. In many cases, logic that was being
- Actions API revision1.20.0breaking
object that's typically bound to a keyboard key combination using the `Shortcuts` widget. An `Intent` can be bound to an `Action`, which can update the application
- - Don't crash widget preview when a directory watcher restarts on Windows.3.35.2bugfix
crash widget preview when a directory watcher restarts on Windows
- - Fixes an issue with the `Drawer` widget, causing it to open or close incorrectly.3.24.3bugfix
Fixes an issue with the `Drawer` widget, causing it to open or close incorrectly
- - Fixes an issue displaying the wrong icons in the widget inspector for some apps.3.32.1bugfix
Fixes an issue displaying the wrong icons in the widget inspector for some apps
- ThemeData's toggleableActiveColor property has been deprecated3.7.0deprecated
Material widgets `Switch`, `SwitchListTile`, `Checkbox`, `CheckboxListTile`, `Radio`, `RadioListTile` now use `ColorScheme.secondary` color for their toggleable widget. `ThemeData.toggleableActiveColor` is deprecated and will eventually be removed. The widgets
- [Widget Inspector] Fix missing cupertino icon in on-device inspector.3.32.1bugfix
Widget Inspector] Fix missing cupertino icon in on-device inspector
- - Fixes an issue where starting a widget preview fails if Chrome or Edge is not installed.3.35.2bugfix
Fixes an issue where starting a widget preview fails if Chrome or Edge is not installed
- - Fixes an issue where the `Toolbar` widget is incorrectly positioned when inside of a textfield in the Appbar.3.7.8bugfix
Fixes an issue where the `Toolbar` widget is incorrectly positioned when inside of a textfield in the Appbar
- Container color optimization1.17.0breaking
BoxDecoration` need to be modified. Code before migration: ```dart testWidgets('Container color', (WidgetTester tester) async { await tester.pumpWidget(Container(color: Colors.red)); final Container container = tester.widgetList ().first; expect(container.decoration.color, Colors.red
- Migrating to Material 33.16.0breaking
these updates are seamless. You'll see the new version of an affected widget when recompiling your app against the 3.16 (or later) release. But some manual
- - Nested horizontal sliders in widgets with horizontal drag gestures do not work in Android applications.3.0.2bugfix
Nested horizontal sliders in widgets with horizontal drag gestures do not work in Android applications
- - Ink ripple is rendered incorrectly inside of the `NavigationBar` widget when using Material 3.3.7.2bugfix
ripple is rendered incorrectly inside of the `NavigationBar` widget when using Material
- The widget previewer fails to start if flutter pub get has not been run in the target project.3.38.2bugfix
widget previewer fails to start if flutter pub get has not been run in the target project
- TestTextInput state reset1.17.0breaking
system's onscreen keyboard, is now reset between tests. The state of `WidgetTester.testTextInput` is now reset before running a `testWidgets` test. The Flutter test framework uses a class
- - Windows apps crash when accessibility is enabled on apps that use widgets with custom semantic actions.3.3.1bugfix
Windows apps crash when accessibility is enabled on apps that use widgets with custom semantic actions
- - Some widgets are not visible when nested inside of `ClipRRect` in CanvasKit mode when using Flutter web on Safari.3.3.10bugfix
Some widgets are not visible when nested inside of `ClipRRect` in CanvasKit mode when using Flutter web on Safari
- Running flutter pub get can crash the widget previewer when plugin dependencies are added or updated.3.38.2bugfix
Running flutter pub get can crash the widget previewer when plugin dependencies are added or updated
- - Fixes a crash that occurs when rendering children in `TwoDimentionalViewport` using keep alive widgets (e.g InkWell).3.22.2bugfix
Fixes a crash that occurs when rendering children in `TwoDimentionalViewport` using keep alive widgets (e.g InkWell
- TextField requires MaterialLocalizations1.20.0breaking
Instances of `TextField` must have a `MaterialLocalizations` present in the widget tree. Trying to instantiate a `TextField` without the proper localizations results in an assertion such
- Fix typo in widget_inspector.dart3.38.0docs
typo in widget_inspector.dart (Framework, by @xVemu
- 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
- - Fixes an error on Flutter Web where `onTap` is called twice on various widgets (`GestureDetector`, `InkWell`) when semantics are enabled.3.24.2bugfix
Fixes an error on Flutter Web where `onTap` is called twice on various widgets (`GestureDetector`, `InkWell`) when semantics are enabled