Material 2 Components widgets

Widgets implementing the Material 2 Design guidelines.

See more widgets in the widget catalog.

AppBar

Container that displays content and actions at the top of a screen.

BottomNavigationBar

Container that includes tools to explore and switch between top-level views in a single tap.

Drawer

A Material Design panel that slides in horizontally from the edge of a Scaffold to show navigation links in an application.

MaterialApp

A convenience widget that wraps a number of widgets that are commonly required for applications implementing Material Design.

Scaffold

Implements the basic Material Design visual layout structure. This class provides APIs for showing drawers, snack bars, and bottom sheets.

SliverAppBar

A material design app bar that integrates with a CustomScrollView.

TabBar

Layered containers that organize content across different screens, data sets, and other interactions.

TabBarView

A page view that displays the widget which corresponds to the currently selected tab. Typically used in conjunction with a TabBar.

TabController

Coordinates tab selection between a TabBar and a TabBarView.

TabPageSelector

Displays a row of small circular indicators, one per tab. The selected tab's indicator is highlighted. Often used in conjunction with a TabBarView.

WidgetsApp

A convenience class that wraps a number of widgets that are commonly required for an application.

Buttons

DropdownButton

Shows the currently selected item and an arrow that opens a menu for selecting another item.

ElevatedButton

A Material Design elevated button. A filled button whose material elevates when pressed.

FloatingActionButton

Clickable block containing an icon that keeps a key action always in reach.

Extended FloatingActionButton

Clickable block that triggers an action. These wider blocks can fit a text label and provide a larger target area.

IconButton

Clickable icons to prompt app users to take supplementary actions.

OutlinedButton

A Material Design outlined button, essentially a TextButton with an outlined border.

PopupMenuButton

Displays a menu when pressed and calls onSelected when the menu is dismissed because an item was selected.

TextButton

A Material Design text button. A simple flat button without a border outline.

Input and selections

Checkbox

Form control that app users can set or clear to select one or more options from a set.

DatePicker

Calendar interface used to select a date or a range of dates.

Radio

Form control that app users can set or clear to select only one option from a set.

Slider

Form control that enables selecting a range of values.

Switch

Toggle control that changes the state of a single item to on or off.

TextField

Box into which app users can enter text. They appear in forms and dialogs.

Dialogs, alerts, and panels

AlertDialog

Hovering containers that prompt app users to provide more data or make a decision.

BottomSheet

Bottom sheets slide up from the bottom of the screen to reveal more content. You can call showBottomSheet() to implement a persistent bottom sheet or...

ExpansionPanel

Expansion panels contain creation flows and allow lightweight editing of an element. The ExpansionPanel widget implements this component.

SimpleDialog

Simple dialogs can provide additional details or actions about a list item. For example they can display avatars icons clarifying subtext or orthogonal actions (such...

SnackBar

Brief messages about app processes that display at the bottom of the screen.

Information displays

Card

Container for short, related pieces of content displayed in a box with rounded corners and a drop shadow.

Chip

Small blocks that simplify entering information, making selections, filtering content, or triggering actions.

CircularProgressIndicator

Circular progress indicator that spins to indicate a busy application.

DataTable

Data tables display sets of raw data. They usually appear in desktop enterprise products. The DataTable widget implements this component.

GridView

A grid list consists of a repeated pattern of cells arrayed in a vertical and horizontal layout. The GridView widget implements this component.

Icon

A Material Design icon.

Image

A widget that displays an image.

LinearProgressIndicator

Vertical line that changes color as an ongoing process, such as loading an app or submitting a form, completes.

Tooltip

Tooltips provide text labels that help explain the function of a button or other user interface action. Wrap the button in a Tooltip widget to...

Layout

Divider

Thin line that groups content in lists and containers.

ListTile

A single fixed-height row that typically contains some text as well as a leading or trailing icon.

Stepper

A Material Design stepper widget that displays progress through a sequence of steps.

See more widgets in the widget catalog.