0 purchases
slide up
slide_up #
create a slider #
Installation #
Add slide_up to your pubspec.yaml dependencies. And import it:
slide_up: ^0.0.1
copied to clipboard
How to use #
Simply create a SlideUp widget, and pass the required params:
SlideUp(
color: Color.fromRGBO(244, 67, 54, 1),
body: Container(
color: Colors.yellow,
),
bottomSheet: Container(
color: Colors.green,
child: Text("g")
)
),
copied to clipboard
Params #
final Widget body;
final Widget bottomSheet;
final double maxHeight;
final double minHeight;
final double? initialHeight;
final SlideUpController? slideUpController;
final Duration animationDuration;
final double? thresholdHeight;
final Color? color;
final Decoration? decoration;
final AlignmentGeometry? alignment;
final EdgeInsetsGeometry? padding;
final Decoration? foregroundDecoration;
final BoxConstraints? constraints;
final EdgeInsetsGeometry? margin;
final Matrix4? transform;
final AlignmentGeometry? transformAlignment;
final Clip clipBehavior;
final Curve curve;
final void Function()? onEnd;
final bool clickOutSlideToClose; // default value is false
final VoidCallback? reachedMaxPosition;
final VoidCallback? reachedMinPosition;
copied to clipboard
Screenshots #
SlideController methods #
.goToMinPosition()
copied to clipboard
go to the min position
.goToMaxPosition()
copied to clipboard
go to the max position
SlideController value #
currentValue (get a currentValue of slider)
minHeight (get a minHeight of slider)
maxHeight (get a maxHeight of slider)
inMinPosition (true if slider reach min position)
inMaxPosition (true if slider reach max position)
copied to clipboard
Badges #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.