FlipDrawer class

Inheritance

Constructors

FlipDrawer({Key? key, List<MenuItem> items = const [], Widget? drawer, Widget? headDrawer, Widget? contentDrawer, required Widget child, Duration duration = const Duration(milliseconds: 250), Curve curve = Curves.easeInOut, Duration? reverseDuration, Curve? reverseCurve, FlipDrawerAlignment? alignment, required String title, double offsetFromRight = 60.0, bool isAnimateMenuButton = true})
const

Properties

alignment FlipDrawerAlignment?
Vertical alignment of content inside drawer it can start from the top, or center
final
child Widget
The color to use for the drawer background. Typically this should be set along with brightness.
final
contentDrawer Widget?
Content drawer to be used if you don't want to use the default content drawer generated from items
final
curve Curve
Curve to be used for the drawer sliding animation
final
drawer Widget?
Custom drawer to be used when you don't want to use the default SlideDrawerContainer generated from items or contentDrawer
final
duration Duration
Duration of the drawer sliding animation
final
hashCode int
The hash code for this object.
no setterinherited
headDrawer Widget?
Head drawer to be rendered before contentDrawer or the default generated content drawer from items
final
isAnimateMenuButton bool
final
items List<MenuItem>
List of MenuItem to be used to generate the default content drawer
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
offsetFromRight double
Offset from right to calculate the end point of sliding animation
final
reverseCurve Curve?
Curve to be used for the drawer sliding animation in the reverse direction
final
reverseDuration Duration?
Duration of the drawer sliding animation in the reverse direction
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _FlipDrawerState
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

Static Methods

of(BuildContext context) → _FlipDrawerState?