BottomSheetService class

A service that allows you to show a bottom sheet

Constructors

BottomSheetService()

Properties

hashCode int
The hash code for this object.
no setterinherited
isBottomSheetOpen bool?
Check if bottomsheet is open
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

completeSheet(SheetResponse response) → void
Completes the dialog and passes the response to the caller
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCustomSheetBuilders(Map<dynamic, SheetBuilder> builders) → void
showBottomSheet({required String title, String? description, String confirmButtonTitle = 'Ok', String? cancelButtonTitle, bool enableDrag = true, bool barrierDismissible = true, bool isScrollControlled = false, Duration? exitBottomSheetDuration, Duration? enterBottomSheetDuration, bool? ignoreSafeArea, bool useRootNavigator = false, double elevation = 1}) Future<SheetResponse?>
showCustomSheet<T, R>({dynamic variant, String? title, String? description, bool hasImage = false, String? imageUrl, bool showIconInMainButton = false, String? mainButtonTitle, bool showIconInSecondaryButton = false, String? secondaryButtonTitle, bool showIconInAdditionalButton = false, String? additionalButtonTitle, bool takesInput = false, Color barrierColor = Colors.black54, double elevation = 1, bool barrierDismissible = true, bool isScrollControlled = false, String barrierLabel = '', dynamic customData, R? data, bool enableDrag = true, Duration? exitBottomSheetDuration, Duration? enterBottomSheetDuration, bool? ignoreSafeArea, bool useRootNavigator = false}) Future<SheetResponse<T>?>
Creates a popup with the given widget, a scale animation, and faded background.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited