text
stringlengths
1
474
Common buttons: Clickable blocks that start an action, such as sending an email, sharing a document, or liking a comment.
ConstrainedBox: A widget that imposes additional constraints on its child.
Container: A convenience widget that combines common painting, positioning, and sizing widgets.
CupertinoActionSheet: An iOS-style modal bottom action sheet to choose an option among many.
CupertinoActivityIndicator: An iOS-style activity indicator. Displays a circular 'spinner'.
CupertinoAlertDialog: An iOS-style alert dialog.
CupertinoButton: An iOS-style button.
CupertinoContextMenu: An iOS-style full-screen modal route that opens when the child is long-pressed. Used to display relevant actions for your content.
CupertinoDatePicker: An iOS-style date or date and time picker.
CupertinoDialogAction: A button typically used in a CupertinoAlertDialog.
CupertinoFullscreenDialogTransition: An iOS-style transition used for summoning fullscreen dialogs.
CupertinoListSection: Container that uses the iOS style to display a scrollable view.
CupertinoListTile: A block that uses the iOS style to create a row in a list.
CupertinoNavigationBar: Container at the top of a screen that uses the iOS style. Many developers use this with `CupertinoPageScaffold`.
CupertinoPageScaffold: Basic iOS style page layout structure. Positions a navigation bar and content on a background.
CupertinoPageTransition: Provides an iOS-style page transition animation.
CupertinoPicker: An iOS-style picker control. Used to select an item in a short list.
CupertinoPopupSurface: Rounded rectangle surface that looks like an iOS popup surface, such as an alert dialog or action sheet.
CupertinoScrollbar: An iOS-style scrollbar that indicates which portion of a scrollable widget is currently visible.
CupertinoSearchTextField: An iOS-style search field.
CupertinoSegmentedControl: An iOS-style segmented control. Used to select mutually exclusive options in a horizontal list.
CupertinoSlider: Used to select from a range of values.
CupertinoSlidingSegmentedControl: An iOS-13-style segmented control. Used to select mutually exclusive options in a horizontal list.
CupertinoSliverNavigationBar: An iOS-styled navigation bar with iOS-11-style large titles using slivers.
CupertinoSwitch: An iOS-style switch. Used to toggle the on/off state of a single setting.
CupertinoTabBar: An iOS-style bottom tab bar. Typically used with CupertinoTabScaffold.
CupertinoTabScaffold: Tabbed iOS app structure. Positions a tab bar on top of tabs of content.
CupertinoTabView: Root content of a tab that supports parallel navigation between tabs. Typically used with CupertinoTabScaffold.
CupertinoTextField: An iOS-style text field.
CupertinoTimerPicker: An iOS-style countdown timer picker.
CustomMultiChildLayout: A widget that uses a delegate to size and position multiple children.
CustomPaint: A widget that provides a canvas on which to draw during the paint phase.
CustomScrollView: A ScrollView that creates custom scroll effects using slivers.
CustomSingleChildLayout: A widget that defers the layout of its single child to a delegate.
DataTable: Data tables display sets of raw data. They usually appear in desktop enterprise products. The DataTable widget implements this component.
DatePicker: Calendar interface used to select a date or a range of dates.
DecoratedBox: A widget that paints a Decoration either before or after its child paints.
DecoratedBoxTransition: Animated version of a DecoratedBox that animates the different properties of its Decoration.
DefaultTextStyle: The text style to apply to descendant Text widgets without explicit style.
Dismissible: A widget that can be dismissed by dragging in the indicated direction. Dragging or flinging this widget in the DismissDirection causes the child to slide out of view. Following the slide animation, if resizeDuration is non-null, the Dismissible widget animates its height (or width, whichever is perpendicular to the dismiss direction) to zero over the resizeDuration.
Divider: Thin line that groups content in lists and containers.
DragTarget: A widget that receives data when a Draggable widget is dropped. When a draggable is dragged on top of a drag target, the drag target is asked whether it will accept the data the draggable is carrying. If the user does drop the draggable on top of the drag target (and the drag target has indicated that it will accept the draggable's data), then the drag target is asked to accept the draggable's data.
Draggable: A widget that can be dragged from to a DragTarget. When a draggable widget recognizes the start of a drag gesture, it displays a feedback widget that tracks the user's finger across the screen. If the user lifts their finger while on top of a DragTarget, that target is given the opportunity to accept the data carried by the draggable.The ignoringFeedbackPointer defaults to true, which means that the feedback widget ignores the pointer during hit testing.
Similarly, ignoringFeedbackSemantics defaults to true, and the feedback also ignores semantics when building the semantics tree.On multitouch devices, multiple drags can occur simultaneously because there can be multiple pointers in contact with the device at once.: To limit the number of simultaneous drags, use the maxSimultaneousDrags property. The default is to allow an unlimited number of simultaneous drags.
This widget displays child when zero drags are under way. If childWhenDragging is non-null, this widget instead displays childWhenDragging when one or more drags are underway. Otherwise, this widget always displays child.
DraggableScrollableSheet: A container for a Scrollable that responds to drag gestures by resizing the scrollable until a limit is reached, and then scrolling.
Drawer: A Material Design panel that slides in horizontally from the edge of a Scaffold to show navigation links in an application.
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.
ExcludeSemantics: A widget that drops all the semantics of its descendants. This can be used to hide subwidgets that would otherwise be reported but that would only be confusing
Expanded: A widget that expands a child of a Row, Column, or Flex.
ExpansionPanel: Expansion panels contain creation flows and allow lightweight editing of an element. The ExpansionPanel widget implements this component.
Extended FloatingActionButton: Clickable block that triggers an action. These wider blocks can fit a text label and provide a larger target area.
FadeTransition: Animates the opacity of a widget.
FittedBox: Scales and positions its child within itself according to fit.
FloatingActionButton: Clickable block containing an icon that keeps a key action always in reach.
Flow: A widget that implements the flow layout algorithm.
FlutterLogo: The Flutter logo, in widget form. This widget respects the IconTheme.
Form: An optional container for grouping together multiple form field widgets (e.g. TextField widgets).
FormField: A single form field. This widget maintains the current state of the form field, so that updates and validation errors are visually reflected in the UI
FractionalTranslation: A widget that applies a translation expressed as a fraction of the box's size before painting its child.
FractionallySizedBox: A widget that sizes its child to a fraction of the total available space. For more details about the layout algorithm, see RenderFractionallySizedOverflowBox.
FutureBuilder: Widget that builds itself based on the latest snapshot of interaction with a Future.
GestureDetector: A widget that detects gestures. Attempts to recognize gestures that correspond to its non-null callbacks. If this widget has a child, it defers to that that child for its sizing behavior. If it does not have a child, it grows to fit the parent instead.
GridView: A grid list consists of a repeated pattern of cells arrayed in a vertical and horizontal layout. The GridView widget implements this component.
Hero: A widget that marks its child as being a candidate for hero animations.
Icon: A Material Design icon.
IconButton: Clickable icons to prompt app users to take supplementary actions.
IgnorePointer: A widget that is invisible during hit testing. When ignoring is true, this widget (and its subtree) is invisible to hit testing. It still consumes space during layout and paints its child as usual. It just cannot be the target of located events, because it returns false from RenderBox.hitTest.
Image: A widget that displays an image.
ImplicitlyAnimatedWidget: An abstract class for building widgets that animate changes to their properties.
IndexedStack: A Stack that shows a single child from a list of children.
InteractiveViewer: A widget that enables pan and zoom interactions with its child.
IntrinsicHeight: A widget that sizes its child to the child's intrinsic height.
IntrinsicWidth: A widget that sizes its child to the child's intrinsic width.
KeyboardListener: A widget that calls a callback whenever the user presses or releases a key on a keyboard.
LayoutBuilder: Builds a widget tree that can depend on the parent widget's size.
LimitedBox: A box that limits its size only when it's unconstrained.
LinearProgressIndicator: Vertical line that changes color as an ongoing process, such as loading an app or submitting a form, completes.
ListBody: A widget that arranges its children sequentially along a given axis, forcing them to the dimension of the parent in the other axis.
ListTile: A single fixed-height row that typically contains some text as well as a leading or trailing icon.
ListView: A scrollable, linear list of widgets. ListView is the most commonly used scrolling widget. It displays its children one after another in the scroll direction In the cross axis, the children are required to fill the ListView.
LongPressDraggable: Makes its child draggable starting from long press.
MaterialApp: A convenience widget that wraps a number of widgets that are commonly required for applications implementing Material Design.
MediaQuery: Establishes a subtree in which media queries resolve to the given data.
Menu: Container that displays a list of choices on a temporary surface.
MergeSemantics: A widget that merges the semantics of its descendants.
Navigation rail: Persistent container on the leading edge of tablet and desktop screens to navigate to parts of an app.
NavigationBar: Persistent container that enables switching between primary destinations in an app.
NavigationDrawer: Container that slides from the leading edge of the app to navigate to other sections in an app.
Navigator: A widget that manages a set of child widgets with a stack discipline. Many apps have a navigator near the top of their widget hierarchy in order to display their logical history using an Overlay with
the most recently visited pages visually on top of the older pages. Using this pattern lets the navigator visually transition from one page to another by moving the widgets around in the overlay.
Similarly, the navigator can be used to show a dialog by positioning the dialog widget above the current page.
NestedScrollView: A scrolling view inside of which can be nested other scrolling views, with their scroll positions being intrinsically linked.
NotificationListener: A widget that listens for Notifications bubbling up the tree.
Offstage: A widget that lays the child out as if it was in the tree, but without painting anything, without making the child available for hit testing, and without taking any room in the parent.Offstage children are still active: they can receive focus and have keyboard input directed to them.
Opacity: A widget that makes its child partially transparent.
OutlinedButton: A Material Design outlined button, essentially a TextButton with an outlined border.
OverflowBox: A widget that imposes different constraints on its child than it gets from its parent, possibly allowing the child to overflow the parent.
Padding: A widget that insets its child by the given padding.