A material design Drawer header that identifies the app's user.
Requires one of its ancestors to be a Material widget.
See also:
- DrawerHeader, for a drawer header that doesn't show user acounts
- material.google.com/patterns/navigation-drawer.html
- Inheritance
- Object
- Widget
- StatefulWidget
- UserAccountsDrawerHeader
Constructors
- UserAccountsDrawerHeader({Key key, Decoration decoration, Widget currentAccountPicture, List<Widget> otherAccountsPictures, Widget accountName, Widget accountEmail, VoidCallback onDetailsPressed })
-
Creates a material design drawer header.
Properties
- accountEmail → Widget
-
A widget that represents the email address of the user's current account. It is displayed on the left, below the accountName.
read-only - accountName → Widget
-
A widget that represents the user's current account name. It is displayed on the left, below the currentAccountPicture.
read-only - currentAccountPicture → Widget
-
A widget placed in the upper-left corner that represents the current user's account. Normally a CircleAvatar.
read-only - decoration → Decoration
-
The header's background. If decoration is null then a BoxDecoration with its background color set to the current theme's primaryColor is used.
read-only - onDetailsPressed → VoidCallback
-
A callback that is called when the horizontal area which contains the accountName and accountEmail is tapped.
read-only - otherAccountsPictures → List<Widget>
-
A list of widgets that represent the current user's other accounts. Up to three of these widgets will be arranged in a row in the header's upper-right corner. Normally a list of CircleAvatar widgets.
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - key → Key
-
Controls how one widget replaces another widget in the tree.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
createState(
) → _UserAccountsDrawerHeaderState -
Creates the mutable state for this widget at a given location in the tree.
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited -
debugFillDescription(
List<String> description) → void -
Add additional information to the given description for use by toString.
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited -
toStringShort(
) → String -
A short, textual description of this widget.
inherited