Results for “Button”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Concepts
Guides
- Return data from a screendoc
Navigator.pop() method using the following steps: Define the home screen Add a button that launches the selection screen Show the selection screen with two buttons When
- User inputdoc
Accept input from the user with buttons and text fields. Learn to build text inputs, manage text with controllers, and handle user actions with buttons. Introduction
API reference
- ButtonThemeclass
Used with ButtonThemeData to configure the color and geometry of buttons. material.ButtonTheme ButtonTheme Button Theme class material
- ButtonStyleButtonclass
base StatefulWidget class for buttons whose style is defined by a ButtonStyle object. material.ButtonStyleButton ButtonStyleButton Button Style Button class material
- ButtonThemeDataclass
Used with ButtonTheme to configure the color and geometry of buttons. material.ButtonThemeData ButtonThemeData Button Theme Data class material
- ButtonBarThemeclass
Applies a button bar theme to descendant ButtonBar widgets. material.ButtonBarTheme ButtonBarTheme Button Bar Theme class material
- ButtonStyleclass
visual properties that most buttons have in common. material.ButtonStyle ButtonStyle Button Style class material
- ButtonActivateIntentclass
Intent that activates the currently focused button. widgets.ButtonActivateIntent ButtonActivateIntent Button Activate Intent class widgets
- ButtonBarThemeDataclass
Defines the visual properties of ButtonBar widgets. material.ButtonBarThemeData ButtonBarThemeData Button Bar Theme Data class material
- ButtonBarclass
laying out into a column if there is not enough horizontal space. material.ButtonBar ButtonBar Button Bar class material
- ButtonSegmentclass
Data describing a segment of a SegmentedButton. material.ButtonSegment ButtonSegment Button Segment class material
- ButtonThemeData.newconstructor
Create a button theme object that can be used with ButtonTheme or ThemeData. material.ButtonThemeData.ButtonThemeData.new ButtonThemeData new Button Theme Data.new constructor material
- ButtonBarTheme.newconstructor
Constructs a button bar theme that configures all descendant ButtonBar widgets. material.ButtonBarTheme.ButtonBarTheme.new ButtonBarTheme new Button Bar Theme.new constructor material
- ButtonSegment.newconstructor
Construct a ButtonSegment. material.ButtonSegment.ButtonSegment.new ButtonSegment new Button Segment.new constructor material
- ButtonStyle.newconstructor
Create a ButtonStyle. material.ButtonStyle.ButtonStyle.new ButtonStyle new Button Style.new constructor material
- ButtonTheme.newconstructor
Creates a button theme. material.ButtonTheme.ButtonTheme.new ButtonTheme new Button Theme.new constructor material
- ButtonBar.newconstructor
Creates a button bar. material.ButtonBar.ButtonBar.new ButtonBar new Button Bar.new constructor material
- ButtonTheme.fromButtonThemeDataconstructor
Creates a button theme from data. material.ButtonTheme.ButtonTheme.fromButtonThemeData ButtonTheme fromButtonThemeData Button Theme.from Button Theme Data constructor material
- ButtonActivateIntent.newconstructor
that activates the currently focused control, if it's a button. widgets.ButtonActivateIntent.ButtonActivateIntent.new ButtonActivateIntent new Button Activate Intent.new constructor widgets
- ButtonBarThemeData.newconstructor
Constructs the set of properties used to configure ButtonBar widgets. material.ButtonBarThemeData.ButtonBarThemeData.new ButtonBarThemeData new Button Bar Theme Data.new constructor material
- ButtonStyleButton.newconstructor
provide const constructors so that they can be used in const expressions. material.ButtonStyleButton.ButtonStyleButton.new ButtonStyleButton new Button Style Button.new constructor material
- material.ButtonTextThemeenum
Used with ButtonTheme and ButtonThemeData to define a button's base colors, and the defaults for the button's minimum size, internal padding, and shape. material.ButtonTextTheme
- MaterialButtonclass
utility class for building Material buttons that depend on the ambient ButtonTheme and Theme. material.MaterialButton MaterialButton Material Button class material
- material.ButtonBarLayoutBehaviorenum
Used with ButtonTheme and ButtonThemeData to define how the button bar should size itself with either constraints or internal padding. material.ButtonBarLayoutBehavior ButtonBarLayoutBehavior Button Bar Layout Behavior
- CupertinoDesktopTextSelectionToolbarButtonclass
button in the style of the Mac context menu buttons. cupertino.CupertinoDesktopTextSelectionToolbarButton CupertinoDesktopTextSelectionToolbarButton Cupertino Desktop Text Selection Toolbar Button class cupertino
- CupertinoTextSelectionToolbarButtonclass
button in the style of the iOS text selection toolbar buttons. cupertino.CupertinoTextSelectionToolbarButton CupertinoTextSelectionToolbarButton Cupertino Text Selection Toolbar Button class cupertino
- BackButtonDispatcherclass
Report to a Router when the user taps the back button on platforms that support back buttons (such as Android). widgets.BackButtonDispatcher BackButtonDispatcher Back Button Dispatcher
- TextSelectionToolbarTextButtonclass
button styled like a Material native Android text selection menu button. material.TextSelectionToolbarTextButton TextSelectionToolbarTextButton Text Selection Toolbar Text Button class material
- material.ButtonLayerBuildertypedef
type for ButtonStyle.backgroundBuilder and ButtonStyle.foregroundBuilder. material.ButtonLayerBuilder ButtonLayerBuilder Button Layer Builder typedef material
- gestures.smallestButtonfunction
Returns the button of buttons with the smallest integer. gestures.smallestButton smallestButton smallest Button function gestures
- ToggleButtonsclass
toggle buttons. material.ToggleButtons ToggleButtons Toggle Buttons class material
- gestures.isSingleButtonfunction
Returns whether buttons contains one and only one button. gestures.isSingleButton isSingleButton is Single Button function gestures
- ElevatedButtonclass
Material Design "elevated button". material.ElevatedButton ElevatedButton Elevated Button class material
- IconButtonclass
Material Design icon button. material.IconButton IconButton Icon Button class material
- TextButtonclass
Material Design "Text Button". material.TextButton TextButton Text Button class material
- CupertinoButtonclass
style button. cupertino.CupertinoButton CupertinoButton Cupertino Button class cupertino
- FilledButtonclass
Material Design filled button. material.FilledButton FilledButton Filled Button class material
- CloseButtonclass
Material Design close icon button. material.CloseButton CloseButton Close Button class material
- DrawerButtonclass
Material Design drawer icon button. material.DrawerButton DrawerButton Drawer Button class material
- BackButtonclass
Material Design back icon button. material.BackButton BackButton Back Button class material
Version changes
- Deprecate ButtonBar in favor of OverflowBar3.24.0deprecated
ButtonBar` widget was deprecated in favor of the more efficient `OverflowBar` widget. As a result, `ThemeData.buttonBarTheme` and `ButtonBarTheme` were also deprecated. - Replace `ButtonBar` widget with `OverflowBar` widget
- New Buttons and Button Themes1.20.0breaking
following style makes a `TextButton` look like a default `FlatButton`: ```dart final ButtonStyle flatButtonStyle = TextButton.styleFrom( foregroundColor: Colors.black87, minimumSize: Size(88, 36), padding: EdgeInsets.symmetric(horizontal: 16), shape: const RoundedRectangleBorder
- Replaced parameters for customizing context menus with a generic widget builder3.7.0breaking
reusing the built-in context menu widgets. Previously, it was possible to disable buttons from the context menus using `TextSelectionControls`, but any customization beyond that required copying
- Material Chip button semantics2.0.0breaking
Flutter now applies the semantic label of `button` to all interactive Material Chips for accessibility purposes. The outermost `Semantics` widget that wraps all Chip classes to describe
- - Fixes buttons with icons that ignore foregroundColor.3.29.1bugfix
Fixes buttons with icons that ignore foregroundColor
- Migrate useDeleteButtonTooltip to deleteButtonTooltipMessage of Chips3.0.0breaking
Using `useDeleteButtonTooltip` of any chip that has a delete button gives a deprecation warning, or no longer exists when referenced. This includes the `Chip`, `InputChip`, and `RawChip
- - Fixes an issue that prevents (web) screen readers from pressing buttons through keyboard shortcuts.3.35.2bugfix
Fixes an issue that prevents (web) screen readers from pressing buttons through keyboard shortcuts
- Fix typo in ButtonBar documentation3.41.0docs
typo in ButtonBar documentation (Material, by @leuchte). ButtonBar
- Rebuild optimization for OverlayEntries and Routes1.17.0breaking
setState`. In the example below, assigning the return value of `Navigator.pushNamed` to `buttonLabel` is implicitly modifying the state and it should be wrapped in an explicit `setState` call
- Fix VoiceOver does not announce state of ButtonSegment3.41.0bugfix
VoiceOver does not announce state of ButtonSegment (Material, by @huycozy). VoiceOver ButtonSegment
- Add support for stylus buttons3.47.0new-feature
support for stylus buttons (Windows, by @CodeDoctorDE
- Replace dropdown button with dropdown menu3.41.0improvement
Replace dropdown button with dropdown menu (Material, by @ahmedsameha1
- Handle#6537 end drawer button3.41.0improvement
Handle#6537 end drawer button (Material, by @ahmedsameha1
- Reland "Add support for stylus buttons"3.47.0new-feature
Reland "Add support for stylus buttons" (Windows, by @CodeDoctorDE
- Adds semantics for disabled buttons in date picker3.38.0new-feature
Adds semantics for disabled buttons in date picker (Material, by @chunhtai
- Use local semantics tester in Material button tests3.47.0improvement
local semantics tester in Material button tests (Material, by @MarlonJD
- Fix platform specific semantics for time picker buttons3.38.0bugfix
platform specific semantics for time picker buttons (Material, by @Piinks
- fix(Semantics): Ensure semantics properties take priority over button's3.38.0bugfix
Semantics): Ensure semantics properties take priority over button's (Framework, by @pedromassango
- Android treats link without URL semantics node as button3.41.0platform
Android treats link without URL semantics node as button (Android, by @chunhtai