SlideDrawer class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SlideDrawer
Constructors
-
SlideDrawer({Key? key, List<
MenuItem> items = const [], Widget? drawer, Widget? headDrawer, Widget? contentDrawer, required Widget child, Gradient? backgroundGradient, Color? backgroundColor, Brightness? brightness, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut, Duration? reverseDuration, Curve? reverseCurve, SlideDrawerAlignment? alignment, double offsetFromRight = 60.0, double rotateAngle = (pi / 24), bool isRotate = true, Function? onWillPop}) -
const
Properties
- alignment → SlideDrawerAlignment?
-
Vertical alignment of content inside drawer
it can
start
from the top, orcenter
final - backgroundColor → Color?
-
The color to use for the drawer background. Typically this should be set
along with brightness.
final
- backgroundGradient → Gradient?
-
The gradient to use for the drawer background.
final
- brightness → Brightness?
-
The brightness of the drawer. Typically this is set along
with backgroundColor, backgroundGradient.
final
- child → Widget
-
This is where you should attach your main application widget
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
- isRotate → bool
-
Whether you want to rotate the child in the sliding animation
final
-
items
→ List<
MenuItem> -
List of
MenuItem
to be used to generate the default content drawerfinal - 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
- onWillPop → Function?
-
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
- rotateAngle → double
-
Rotation angle of the child (radian) when
the SlideDrawer sliding to the right
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(
) → _SlideDrawerState -
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) → _SlideDrawerState?