GFDrawerHeader class
A material design Drawer header that identifies the app's user. Requires one of its ancestors to be a Material widget.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GFDrawerHeader
Constructors
-
GFDrawerHeader({Key? key, Decoration? decoration, EdgeInsetsGeometry margin = const EdgeInsets.only(bottom: 8), Widget? currentAccountPicture, List<
Widget> ? otherAccountsPictures, bool centerAlign = false, Widget? child, Duration duration = const Duration(milliseconds: 250), Curve curve = Curves.fastOutSlowIn, Widget? closeButton}) -
Creates a material design drawer header.
const
Properties
- centerAlign → bool
-
If centerAlign is
enabled
then currentAccountPicture in GFDrawerHeader will get center aligned.final - child → Widget?
-
A widget to be placed inside the drawer header, inset by the padding.
final
- closeButton → Widget?
-
widget onTap drawer get closed
final
- currentAccountPicture → Widget?
-
A widget placed in the upper-left corner that represents the current
user's account. Normally a CircleAvatar.
final
- curve → Curve
-
The curve for animations of the decoration.
final
- 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.
final
- duration → Duration
-
The duration for animations of the decoration.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsetsGeometry
-
The margin around the drawer header.
final
-
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.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _GFDrawerHeaderState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited