WeSlide class
A backdrop widget that displaying contextual and actionable content. =]
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- WeSlide
Constructors
-
WeSlide({Key? key, Widget? appBar, required Widget body, Widget? panel, Widget? panelHeader, double panelMinSize = 150.0, double panelMaxSize = 400.0, double? panelWidth, double panelBorderRadiusBegin = 0.0, double panelBorderRadiusEnd = 0.0, double bodyBorderRadiusBegin = 0.0, double bodyBorderRadiusEnd = 0.0, double? bodyWidth, double transformScaleBegin = 1.0, double transformScaleEnd = 0.85, double parallaxOffset = 0.1, double overlayOpacity = 0.0, double blurSigma = 5.0, Color overlayColor = Colors.black, Color blurColor = Colors.black, Color backgroundColor = Colors.black, double appBarHeight = 80.0, bool hidePanelHeader = true, bool parallax = false, bool transformScale = false, bool overlay = false, bool blur = false, bool hideAppBar = true, bool isDismissible = true, bool isUpSlide = true, List<
TweenSequenceItem< ? fadeSequence, Duration animateDuration = const Duration(milliseconds: 300), WeSlideController? controller})double> > - Weslide Contructor
Properties
- animateDuration → Duration
-
This is the value that sets the duration of the animation.
By default is 300 milliseconds
final
- appBar → Widget?
-
This is the widget that will be on top as a AppBar,
this can be used as a AppBar
final
- appBarHeight → double
-
This is the value that set the appbar height.
by default is 80.0
final
- backgroundColor → Color
-
This is the value that defines background color.
By default is Colors.black end should be the same as body
final
- blur → bool
-
This is the value that defines if you want
to enable Gaussian blur effect. By default is false
final
- blurColor → Color
-
This is the value that defines blur color effect.
By default is Colors.black
final
- blurSigma → double
-
This is the value that creates an image filter
that applies a Gaussian blur.
final
- body → Widget
-
This is the widget that will be hided with
Panel
. You can fit any widget. This parameter is requiredfinal - bodyBorderRadiusBegin → double
-
Set this value to create a border radius over Body.
When bodyBorderRadiusBegin is diffrent from bodyBorderRadiusEnd
and the panel is slide up, this create an animation border over body
By default is 0.0
final
- bodyBorderRadiusEnd → double
-
Set this value to create a border radius over Body.
When bodyBorderRadiusBegin is diffrent from bodyBorderRadiusEnd
and the panel is slide up, this create an animation border over body.
By default is 0.0
final
- bodyWidth → double?
-
This is the value that set the body width.
By default is MediaQuery.of(context).size.width
final
- controller ↔ WeSlideController?
-
This object used to control animations, using methods like hide or show
to display panel or check if is visible with variable
isOpened
getter/setter pair -
fadeSequence
→ List<
TweenSequenceItem< double> > -
This is the value that create a fade transition over panel header
final
-
This is the widget that will be below as a footer,
this can be used as a BottomNavigationBar
final
-
This is the value that set the footer height.
by default is 60.0
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideAppBar → bool
-
This is the value that defines if you want
to enable Gaussian blur effect. By default is false
final
-
This is the value that defines if you want to hide the footer.
By default is true
final
- hidePanelHeader → bool
-
This is the value that defines if you want to hide the panelHeader.
By default is true
final
- isDismissible → bool
-
The isDismissible parameter specifies whether the panel
will be dismissed when user taps on the screen.
final
- isUpSlide → bool
-
This is the value that need up sliding panel if you want
to enable Slide up through panel. By default is true
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- overlay → bool
-
This is the value that defines if you want
to enable overlay effect. By default is false
final
- overlayColor → Color
-
This is the value that defines overlay color effect.
By default is Colors.black
final
- overlayOpacity → double
-
This is the value that defines opacity
overlay effect bethen body and panel.
final
- panel → Widget?
-
This is the widget that will slide over the Body.
You can fit any widget.
final
- panelBorderRadiusBegin → double
-
Set this value to create a border radius over Panel.
When panelBorderRadiusBegin is diffrent from panelBorderRadiusEnd
and the panel is slide up, this create an animation border over panel
By default is 0.0
final
- panelBorderRadiusEnd → double
-
Set this value to create a border radius over Panel.
When panelBorderRadiusBegin is diffrent from panelBorderRadiusEnd
and the panel is slide up, this create an animation border over panel
By default is 0.0
final
- panelHeader → Widget?
-
This is the header that will be over the
Panel
. You can fit any widget.final - panelMaxSize → double
-
This is the value that set the panel max height.
When slide up the panel this value define the max height
that panel will be over Body. By default is
400.0
if you want that panel cover the whole Body, set with MediaQuery.of(context).size.heightfinal - panelMinSize → double
-
This is the initial value that set the panel min height.
If the value is greater than 0, panel will be this size over body
By default is
150.0
. Set0.0
if you want to hidePanel
final - panelWidth → double?
-
This is the value that set the panel width
by default is MediaQuery.of(context).size.width
final
- parallax → bool
-
This is the value that defines if you want to enable paralax effect.
By default is false
final
- parallaxOffset → double
-
Set this value to create a parallax effect when the panel is slide up.
By default is 0.1
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transformScale → bool
-
This is the value that defines if you want
to enable transform scale effect. By default is false
final
- transformScaleBegin → double
-
This is the value that defines Transform scale begin effect
By default is 1.0
final
- transformScaleEnd → double
-
This is the value that defines Transform scale end effect
by default is 0.9
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _WeSlideState -
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