Results for “Switch”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Concepts
- Accessibility3.47.7accessibility
Guideline API. Every widget contributes to a semantics tree; built-in widgets (buttons, switches, text fields, Text) already set labels, roles and actions. Semantics(label:, button:, header
- Navigation and routing3.47.7navigation
Future that push returned. For URL-driven apps and deep links, switch to the Router API through a package such as go_router instead of named routes
- Performance3.47.7performance
Flutter is fast by default; jank comes from doing more work per
Guides
- Accessibility technologiesdoc
Information about accessibility technologies for Flutter developers. Summary Assistive technologies are essential
- Rebuild UI when state changesdoc
ListenableBuilder to automatically rebuild UI and handle all possible states with switch expressions. Introduction The view layer is your UI, and in Flutter, that refers to your
- Performance best practicesdoc
How to ensure that your Flutter app is performant. Generally, Flutter applications
- Understanding Flutter's keyboard focus systemdoc
How to use the focus system in your Flutter app. This article
API reference
- Switchclass
Material Design switch. material.Switch Switch Switch class material
- SwitchListTileclass
Switch. In other words, a switch with a label. material.SwitchListTile SwitchListTile Switch List Tile class material
- SwitchThemeclass
Applies a switch theme to descendant Switch widgets. material.SwitchTheme SwitchTheme Switch Theme class material
- SwitchThemeDataclass
Defines default property values for descendant Switch widgets. material.SwitchThemeData SwitchThemeData Switch Theme Data class material
- SwitchTheme.newconstructor
Constructs a switch theme that configures all descendant Switch widgets. material.SwitchTheme.SwitchTheme.new SwitchTheme new Switch Theme.new constructor material
- Switch.newconstructor
Creates a Material Design switch. material.Switch.Switch.new Switch new Switch.new constructor material
- SwitchListTile.newconstructor
Creates a combination of a list tile and a switch. material.SwitchListTile.SwitchListTile.new SwitchListTile new Switch List Tile.new constructor material
- SwitchListTile.adaptiveconstructor
with an adaptive Switch, following Material design's Cross-platform guidelines. material.SwitchListTile.SwitchListTile.adaptive SwitchListTile adaptive Switch List Tile.adaptive constructor material
- Switch.adaptiveconstructor
macOS, following Material design's Cross-platform guidelines. material.Switch.Switch.adaptive Switch adaptive Switch.adaptive constructor material
- SwitchThemeData.newconstructor
Creates a theme that can be used for ThemeData.switchTheme. material.SwitchThemeData.SwitchThemeData.new SwitchThemeData new Switch Theme Data.new constructor material
- CupertinoSwitchclass
style switch. cupertino.CupertinoSwitch CupertinoSwitch Cupertino Switch class cupertino
- ApplicationSwitcherDescriptionclass
description of the application that is pertinent to the embedder's application switcher (also known as "recent tasks") user interface. services.ApplicationSwitcherDescription ApplicationSwitcherDescription Application Switcher Description class services
- CupertinoSwitch.newconstructor
Creates an iOS-style switch. cupertino.CupertinoSwitch.CupertinoSwitch.new CupertinoSwitch new Cupertino Switch.new constructor cupertino
- CupertinoThumbPainterclass
Paints an iOS-style slider thumb or switch thumb. cupertino.CupertinoThumbPainter CupertinoThumbPainter Cupertino Thumb Painter class cupertino
- CupertinoThumbPainter.switchThumbconstructor
Creates an object that paints an iOS-style switch thumb. cupertino.CupertinoThumbPainter.CupertinoThumbPainter.switchThumb CupertinoThumbPainter switchThumb Cupertino Thumb Painter.switch Thumb constructor cupertino
- ListTileThemeDataclass
ListTile widgets, as well as classes that build ListTiles, like CheckboxListTile, RadioListTile, and SwitchListTile. material.ListTileThemeData ListTileThemeData List Tile Theme Data class material
- widgets.ToggleableStateMixinmixin
mixin for StatefulWidgets that implement toggleable controls with toggle animations (e.g. Switches, CupertinoSwitches, Checkboxes, CupertinoCheckboxes, Radios, and CupertinoRadios). widgets.ToggleableStateMixin ToggleableStateMixin Toggleable State Mixin mixin widgets
- AnimatedSwitcherclass
widget previously set on the AnimatedSwitcher as a child. widgets.AnimatedSwitcher AnimatedSwitcher Animated Switcher class widgets
Version changes
- Switches Windows to OpenGLESSDF3.47.0platform
Switches Windows to OpenGLESSDF (Windows, by @gaaclarke
- - Fixes a false error when using in switch case expressions when the switch refers to a private getter.3.10.1bugfix
Fixes a false error when using in switch case expressions when the switch refers to a private getter
- - Improve analysis of enums and switch.3.0.3bugfix
Improve analysis of enums and switch
- 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 using
- Adding 'linux' and 'windows' to TargetPlatform enum1.17.0breaking
values 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
- - Build error when switching between dev/beta and stable branches.1.22.6bugfix
Build error when switching between dev/beta and stable branches
- - Task switching may freeze on some Android versions.1.20.3bugfix
Task switching may freeze on some Android versions
- - Fix iOS 17 keyboard freeze when switching languages3.16.1bugfix
keyboard freeze when switching languages
- - Apps crash when `FadeInImage` switches from cached to uncached images.3.3.5bugfix
Apps crash when `FadeInImage` switches from cached to uncached images
- - Fixes incorrect error using a void in a switch case expression.3.10.1bugfix
Fixes incorrect error using a void in a switch case expression
- - Obsolete warning and error messages are shown when switching between build modes in Xcode.3.35.3bugfix
Obsolete warning and error messages are shown when switching between build modes in Xcode
- - Fixes a dart2js crash when using a switch case expression on a record where the fields don't match the cases.3.10.2bugfix
Fixes a dart2js crash when using a switch case expression on a record where the fields don't match the cases
- When Android apps switch from any `SystemUiMode` to edge-to-edge, the system bars unexpectedly remain invisible.3.44.2bugfix
When Android apps switch from any `SystemUiMode` to edge-to-edge, the system bars unexpectedly remain invisible
- Reland licenses cpp switch3.38.0improvement
Reland licenses cpp switch (Other changes, by @gaaclarke
- Make sure that a SwitchListTile doesn't crash in 0x0 environment3.41.0bugfix
Make sure that a SwitchListTile doesn't crash in 0x0 environment (Material, by @ahmedsameha1). SwitchListTile
- Adds property passthrough for CheckboxListTile, SwitchListTile and RadioListTile3.41.0new-feature
Adds property passthrough for CheckboxListTile, SwitchListTile and RadioListTile (Material, by @Guldem). CheckboxListTile SwitchListTile RadioListTile
- licenses_cpp: reland switch 43.38.0platform
licenses_cpp: reland switch 4 (Linux, by @gaaclarke
- Replace deprecated `withOpacity` in `switch.1.dart` example3.41.0deprecated
Replace deprecated `withOpacity` in `switch.1.dart` example (Framework, by @AbdeMohlbi
- Reland licenses cpp switch 33.38.0improvement
Reland licenses cpp switch 3 (Other changes, by @gaaclarke
- Remove deprecated `activeColor` in `switch.0.dart` example3.41.0removed
Remove deprecated `activeColor` in `switch.0.dart` example (Framework, by @AbdeMohlbi
- Reland licenses cpp switch 23.38.0improvement
Reland licenses cpp switch 2 (Other changes, by @gaaclarke
- Add `--profile-startup` switch3.38.0new-feature
profile-startup` switch (iOS, by @derekxu16
- Adds windows project switch for enabling impeller3.47.0new-feature
Adds windows project switch for enabling impeller (Windows, by @gaaclarke
- Adds switch for sdf rendering plus golden tests3.44.0new-feature
Adds switch for sdf rendering plus golden tests (iOS, by @gaaclarke
- [Material] modernize Typography._withPlatform with Dart 3 switch expression3.44.0docs
Material] modernize Typography._withPlatform with Dart 3 switch expression (Material, by @Enderjua
- [Material] update hourFormat to use Dart 3 switch expression3.44.0improvement
Material] update hourFormat to use Dart 3 switch expression (Material, by @Enderjua
- licenses_cpp: Switched to lexically_relative for 2x speed boost.3.38.0improvement
licenses_cpp: Switched to lexically_relative for 2x speed boost. (Other changes, by @gaaclarke
- [ios][engine] Fix keyboard flicker when switching text fields3.44.0bugfix
engine] Fix keyboard flicker when switching text fields (Framework, by @koji
- [Material] modernize time picker components with Dart 3 switch expressions3.44.0improvement
Material] modernize time picker components with Dart 3 switch expressions (Material, by @Enderjua
- [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
- 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
- Added AppLifecycleState.hidden3.13.0breaking
lifecycle state 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
- Migrate ShortcutActivator and ShortcutManager to KeyEvent system3.16.0breaking
subclasses. Pass a `KeyEvent` instead of a `RawKeyEvent` to `ShortcutActivator.accepts`. This may mean switching where you get your key events from. Depending on where you get them
- Flutter GPU could not be enabled in release builds on Linux and Windows, since those embedders had no project-level opt-in and release...3.47.1bugfix
those embedders had no project-level opt-in and release builds ignore engine switches from the environment
- Restrict Android engine flags in release modeunreleasedbreaking
Previously, the Flutter Android embedding accepted engine configuration flags (such as `--dart