Material component widgets
Flutter provides a variety of visual, behavioral, and motion-rich widgets that implement the Material 3 design specification. Material 3 is the default design language of Flutter, enabling you to design and build beautiful, usable apps that can adapt to any platform.
To catch these and other widgets in action, check out the Material 3 demo web app.
Actions
![Rendered example of the Common buttons Material widget.](/assets/images/docs/widget-catalog/material-3-buttons.png)
Clickable blocks that start an action, such as sending an email, sharing a document, or liking a comment.
![Rendered example of the FloatingActionButton Material widget.](/assets/images/docs/widget-catalog/material-3-floating-action-button.png)
Clickable block containing an icon that keeps a key action always in reach.
![Rendered example of the Extended FloatingActionButton Material widget.](/assets/images/docs/widget-catalog/material-3-extended-fab.png)
Clickable block that triggers an action. These wider blocks can fit a text label and provide a larger target area.
![Rendered example of the IconButton Material widget.](/assets/images/docs/widget-catalog/material-3-icon-button.png)
Clickable icons to prompt app users to take supplementary actions.
![Rendered example of the SegmentedButton Material widget.](/assets/images/docs/widget-catalog/material-3-segmented-button.png)
Single or multiple selected clickable blocks to help people select options, switch views, or sort elements.
Communication
![Rendered example of the Badge Material widget.](/assets/images/docs/widget-catalog/material-3-badge.png)
Icon-like block that conveys dynamic content such as counts or status. It can include labels or numbers.
![Rendered example of the LinearProgressIndicator Material widget.](/assets/images/docs/widget-catalog/material-3-progress-indicator.png)
Vertical line that changes color as an ongoing process, such as loading an app or submitting a form, completes.
![Rendered example of the SnackBar Material widget.](/assets/images/docs/widget-catalog/material-3-snackbar.png)
Brief messages about app processes that display at the bottom of the screen.
Containment
![Rendered example of the AlertDialog Material widget.](/assets/images/docs/widget-catalog/material-3-dialog.png)
Hovering containers that prompt app users to provide more data or make a decision.
![Rendered example of the Bottom sheet Material widget.](/assets/images/docs/widget-catalog/material-3-bottom-sheet.png)
Containers that anchor supplementary content to the bottom of the screen.
![Rendered example of the Card Material widget.](/assets/images/docs/widget-catalog/material-3-card.png)
Container for short, related pieces of content displayed in a box with rounded corners and a drop shadow.
![Rendered example of the Divider Material widget.](/assets/images/docs/widget-catalog/material-3-divider.png)
Thin line that groups content in lists and containers.
![Rendered example of the ListTile Material widget.](/assets/images/docs/widget-catalog/material-3-list.png)
A single fixed-height row that typically contains some text as well as a leading or trailing icon.
Navigation
![Rendered example of the AppBar Material widget.](/assets/images/docs/widget-catalog/material-3-top-app-bar.png)
Container that displays content and actions at the top of a screen.
![Rendered example of the Bottom app bar Material widget.](/assets/images/docs/widget-catalog/material-3-bottom-app-bar.png)
Container that displays navigation and key actions at the bottom of a screen.
![Rendered example of the NavigationBar Material widget.](/assets/images/docs/widget-catalog/material-3-navigation-bar.png)
Persistent container that enables switching between primary destinations in an app.
![Rendered example of the NavigationDrawer Material widget.](/assets/images/docs/widget-catalog/material-3-navigation-drawer.png)
Container that slides from the leading edge of the app to navigate to other sections in an app.
![Rendered example of the Navigation rail Material widget.](/assets/images/docs/widget-catalog/material-3-navigation-rail.png)
Persistent container on the leading edge of tablet and desktop screens to navigate to parts of an app.
![Rendered example of the TabBar Material widget.](/assets/images/docs/widget-catalog/material-3-tab-bar.png)
Layered containers that organize content across different screens, data sets, and other interactions.
Selection
![Rendered example of the Checkbox Material widget.](/assets/images/docs/widget-catalog/material-3-checkbox.png)
Form control that app users can set or clear to select one or more options from a set.
![Rendered example of the Chip Material widget.](/assets/images/docs/widget-catalog/material-3-chip.png)
Small blocks that simplify entering information, making selections, filtering content, or triggering actions.
![Rendered example of the DatePicker Material widget.](/assets/images/docs/widget-catalog/material-3-date-picker.png)
Calendar interface used to select a date or a range of dates.
![Rendered example of the Menu Material widget.](/assets/images/docs/widget-catalog/material-3-menu.png)
Container that displays a list of choices on a temporary surface.
![Rendered example of the Radio Material widget.](/assets/images/docs/widget-catalog/material-3-radio-button.png)
Form control that app users can set or clear to select only one option from a set.
![Rendered example of the Slider Material widget.](/assets/images/docs/widget-catalog/material-3-slider.png)
Form control that enables selecting a range of values.
![Rendered example of the Switch Material widget.](/assets/images/docs/widget-catalog/material-3-switch.png)
Toggle control that changes the state of a single item to on or off.
![Rendered example of the TimePicker Material widget.](/assets/images/docs/widget-catalog/material-3-time-picker.png)
Clock interface used to select and set a specific time.
Text inputs
![Rendered example of the TextField Material widget.](/assets/images/docs/widget-catalog/material-3-text-field.png)
Box into which app users can enter text. They appear in forms and dialogs.
除非另有说明,本文档之所提及适用于 Flutter 的最新稳定版本,本页面最后更新时间: 2024-09-04。 查看文档源码 或者 为本页面内容提出建议。