InnerDrawer class

Inheritance

Constructors

InnerDrawer({GlobalKey<State<StatefulWidget>> key, Widget leftChild, Widget rightChild, @required Widget scaffold, double leftOffset: 0.4, double rightOffset: 0.4, double leftScale: 1, double rightScale: 1, bool proportionalChildArea: true, double borderRadius: 0, bool onTapClose: false, bool tapScaffoldEnabled: false, bool swipe: true, List<BoxShadow> boxShadow, Color colorTransition, InnerDrawerAnimation leftAnimationType: InnerDrawerAnimation.static, InnerDrawerAnimation rightAnimationType: InnerDrawerAnimation.static, Color backgroundColor, InnerDrawerCallback innerDrawerCallback, InnerDragUpdateCallback onDragUpdate })
const

Properties

backgroundColor Color
Color of the main background
final
borderRadius → double
edge radius when opening the scaffold - (defalut 0)
final
boxShadow → List<BoxShadow>
BoxShadow of scaffold opened
final
colorTransition Color
Color of gradient
final
innerDrawerCallback InnerDrawerCallback
Optional callback that is called when a InnerDrawer is opened or closed.
final
leftAnimationType InnerDrawerAnimation
Static or Linear or Quadratic
final
leftChild Widget
Left child
final
leftOffset → double
Left offset drawer width; default 0.4
final
leftScale → double
Left Transform Scale; (default 0) values between 1 and 0
final
onDragUpdate InnerDragUpdateCallback
when a pointer that is in contact with the screen and moves to the right or left
final
onTapClose → bool
Closes the open scaffold
final
proportionalChildArea → bool
The proportionalChild Area = true dynamically sets the width based on the selected offset. On false it leaves the width at 100% of the screen
final
rightAnimationType InnerDrawerAnimation
Static or Linear or Quadratic
final
rightChild Widget
Right child
final
rightOffset → double
Right offset drawer width; default 0.4
final
rightScale → double
Right Transform Scale; (default 0) values between 1 and 0
final
scaffold Widget
A Scaffold is generally used but you are free to use other widgets
final
swipe → bool
activate or deactivate the swipe. NOTE: when deactivate, onTap Close is implicitly activated
final
tapScaffoldEnabled → bool
Closes the open scaffold
final
hashCode → int
The hash code for this object.
read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createState() InnerDrawerState
Creates the mutable state for this widget at a given location in the tree. [...]
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.debug }) → String
Returns 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 ==(dynamic other) → bool
The equality operator.
inherited