SliderDrawer class

SliderDrawer which have two child and slider parameter

For Example :

Scaffold( body: SliderDrawer( appBar: SliderAppBar( appBarColor: Colors.white, title: Text(title, style: const TextStyle( fontSize: 22, fontWeight: FontWeight.w700))), key: _key, sliderOpenSize: 200, slider: SliderView( onItemClick: (title) { _key.currentState!.closeSlider(); setState(() { this.title = title; }); }, ), child: AuthorList()), )

Inheritance

Constructors

SliderDrawer({Key? key, required Widget slider, required Widget child, bool isDraggable = true, int animationDuration = 400, double sliderOpenSize = 265, Color splashColor = const Color(0xffffff), double sliderCloseSize = 0, SlideDirection slideDirection = SlideDirection.LEFT_TO_RIGHT, SliderBoxShadow? sliderBoxShadow, Widget? appBar = const SliderAppBar(), bool isCupertino = false})
const

Properties

animationDuration int
int you can changes sliderDrawer open/close animation times with this animationDuration parameter
final
appBar Widget?
appBar if you set null then it will not display app bar
final
child Widget
Widget main screen widget
final
hashCode int
The hash code for this object.
no setterinherited
isCupertino bool
bool if you use CupertinoApp then it will true otherwise it will false
final
isDraggable bool
bool if you set false then swipe to open feature disable. By Default it's true
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slideDirection SlideDirection
slideDirection you can change slide direction by this parameter slideDirection There are three type of SlideDirection SlideDirection.RIGHT_TO_LEFT SlideDirection.LEFT_TO_RIGHT SlideDirection.TOP_TO_BOTTOM
final
slider Widget
Widget which display when user open drawer
final
sliderBoxShadow SliderBoxShadow?
SliderBoxShadow you can enable shadow of child Widget by this parameter
final
sliderCloseSize double
double you can change close drawer size by this parameter sliderCloseSize by Default it is 0. if you set 30 then drawer will not close full it will display 30 size of width always
final
sliderOpenSize double
double you can change open drawer size by this parameter sliderOpenSize
final
splashColor Color
The primary color of the button when the drawer button is in the down (pressed) state. The splash is represented as a circular overlay that appears above the highlightColor overlay. The splash overlay has a center point that matches the hit point of the user touch event. The splash overlay will expand to fill the button area if the touch is held for long enough time. If the splash color has transparency then the highlight and drawer button color will show through.
final

Methods

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