SlidableBar class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SlidableBar
Constructors
-
SlidableBar({Key? key, required Widget child, required List<
Widget> barChildren, required double size, Color? frontColor, Widget? clicker, ValueChanged<int> ? onChange, Side side = Side.right, Duration duration = const Duration(milliseconds: 300), Color? backgroundColor, double clickerPosition = 0.0, double clickerSize = 55, Curve curve = Curves.linear, SlidableBarController? slidableController, BorderRadius? barRadius}) -
const
Properties
- backgroundColor → Color?
-
backgroundColor is the color of the bar
final
-
barChildren
→ List<
Widget> -
barChildren are the widgets inside the bar
final
- barRadius → BorderRadius?
-
barRadius is the radius of the bar
final
- child → Widget
-
child is the widget under the bar
final
- clicker → Widget?
-
clicker is the custom clicker
final
- clickerPosition → double
-
clickerPosition is the vertical position of the clicker when side is Side.top, Side.bottom
and it is the horizontal position of the clicker when side is Side.right, Side.left
final
- clickerSize → double
-
clickerSize is the size for the default clicker
final
- curve → Curve
-
curve is the animation curve
final
- duration → Duration
-
duration the animation duration
final
- frontColor → Color?
-
frontColor is the color of the default clicker
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onChange
→ ValueChanged<
int> ? -
onChange will be called each time bar state change
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- side → Side
-
side is enum that detect where you want to position the bar
final
- size → double
-
size is the height of the bar when side is Side.top, Side.bottom
and it is the width of the bar when side is Side.right, Side.left
final
- slidableController → SlidableBarController?
-
slidableController to control the bar state
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _SlidableSideBarState -
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