SwipeButtonWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SwipeButtonWidget
Constructors
-
SwipeButtonWidget({Key? key, Widget childBeforeSwipe = const Icon(Icons.arrow_forward_ios), Widget childAfterSwiped = const Icon(Icons.arrow_back_ios), double? height, double? width, EdgeInsetsGeometry margin = const EdgeInsets.all(0), EdgeInsetsGeometry padding = const EdgeInsets.all(0), Color? colorBeforeSwipe = Colors.green, Color? colorAfterSwiped = Colors.red, List<
BoxShadow> boxShadow = const [BoxShadow(color: Colors.black54, blurRadius: 6, offset: Offset(0, 4))], BorderRadiusGeometry? borderRadius, Duration duration = const Duration(milliseconds: 50), BoxConstraints? constraints, List<Widget> rightChildren = const [], List<Widget> leftChildren = const [], required void onHorizontalDragUpdate(DragUpdateDetails details), required Future<bool> onHorizontalDragRight(DragEndDetails details), required Future<bool> onHorizontalDragleft(DragEndDetails details), double acceptPoitTransition = 0.5}) -
AcceptPointTransition from 0 to 1
const
Properties
- acceptPoitTransition → double
-
final
- borderRadius → BorderRadiusGeometry?
-
final
-
boxShadow
→ List<
BoxShadow> -
final
- childAfterSwiped → Widget
-
final
- childBeforeSwipe → Widget
-
final
- colorAfterSwiped → Color?
-
final
- colorBeforeSwipe → Color?
-
final
- constraints → BoxConstraints?
-
final
- duration → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
leftChildren
→ List<
Widget> -
final
- margin → EdgeInsetsGeometry
-
final
-
onHorizontalDragleft
→ Future<
bool> Function(DragEndDetails details) -
final
-
onHorizontalDragRight
→ Future<
bool> Function(DragEndDetails details) -
final
- onHorizontalDragUpdate → void Function(DragUpdateDetails details)
-
final
- padding → EdgeInsetsGeometry
-
final
-
rightChildren
→ List<
Widget> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _SwipeButtonWidgetStateful -
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