SliderMenuContainer class
SliderMenuContainer which have two sliderMain and sliderMenu parameter
For Example :
SliderMenuContainer( appBarColor: Colors.white, sliderMenuOpenSize: 200, title: Text( title, style: TextStyle(fontSize: 22, fontWeight: FontWeight.w700), ), sliderMenu: MenuWidget( onItemClick: (title) { _key.currentState.closeDrawer(); setState(() { this.title = title; }); }, ), sliderMain: MainWidget())
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SliderMenuContainer
Constructors
- SliderMenuContainer({Key? key, required Widget sliderMenu, required Widget sliderMain, bool isDraggable = true, int animationDuration = 200, double sliderMenuOpenSize = 265, Color drawerIconColor = Colors.black, Widget? drawerIcon, Color splashColor = Colors.transparent, bool isTitleCenter = true, Widget? trailing, Color appBarColor = Colors.white, EdgeInsets? appBarPadding = const EdgeInsets.only(top: 24), Widget title = const Text('AppBar'), double drawerIconSize = 27, double appBarHeight = 70, double sliderMenuCloseSize = 0, SlideDirection slideDirection = SlideDirection.LEFT_TO_RIGHT, bool isShadow = false, Color shadowColor = Colors.grey, double shadowBlurRadius = 25.0, double shadowSpreadRadius = 5.0, bool hasAppBar = true, bool useGestureDetector = true})
-
const
Properties
- animationDuration → int
-
int you can changes sliderDrawer open/close animation times with this animationDuration
parameter
final
- appBarColor → Color
-
Color you can change appbar color by this parameter appBarColor
final
- appBarHeight → double
-
double you can change appBar height by this parameter appBarHeight
final
- appBarPadding → EdgeInsets?
-
EdgeInsets you can change appBarPadding by this parameter appBarPadding
final
- drawerIcon → Widget?
-
Widget you can change drawer icon by this parameter drawerIcon
final
- drawerIconColor → Color
-
Color you can change drawer icon by this parameter drawerIconColor
final
- drawerIconSize → double
-
double you can change drawer icon size by this parameter drawerIconSize
final
- hasAppBar → bool
-
bool if you set
false
then it will not display app barfinal - hashCode → int
-
The hash code for this object.
no setterinherited
- isDraggable → bool
-
bool if you set
false
then swipe to open feature disable. By Default it's truefinal - isShadow → bool
-
bool you can enable shadow of sliderMain Widget by this parameter
By default it's
false
final - isTitleCenter → bool
-
bool you can set title in center by this parameter
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
- shadowBlurRadius → double
-
double you can change blurRadius of shadow by this parameter shadowBlurRadius
final
- shadowColor → Color
-
Color you can change shadow color by this parameter shadowColor
final
- shadowSpreadRadius → double
-
double you can change spreadRadius of shadow by this parameter shadowSpreadRadius
final
- 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
- sliderMain → Widget
-
Widget main screen widget
final
- sliderMenu → Widget
-
Widget which display when user open drawer
final
- sliderMenuCloseSize → double
-
double you can change close drawer size by this parameter sliderMenuCloseSize
by Default it is 0. if you set 30 then drawer will not close full it will display 30 size of width always
final
- sliderMenuOpenSize → double
-
double you can change open drawer size by this parameter sliderMenuOpenSize
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 - title → Widget
-
Widget you can set appbar title by this parameter title
final
- trailing → Widget?
-
Widget you can set trailing of appbar by this parameter trailing
final
- useGestureDetector → bool
-
bool if you set
false
then not set body under GestureDetector. By Default it's truefinal
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → SliderMenuContainerState -
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