generic_lib/bottom_sheets/smooth_bottom_sheet library

Classes

ModalSheetItem
SizeWidget
SmoothModalSheet
A non scrollable modal sheet
SmoothModalSheetBodyContainer
With a SmoothModalSheet, if you want to display simple things (eg: text), you can use this widget
SmoothModalSheetHeader
SmoothModalSheetHeaderButton
SmoothModalSheetHeaderCloseButton
SmoothModalSheetHeaderPrefixIndicator

Enums

SmoothModalSheetType

Functions

showSmoothAlertModalSheet<T>({required BuildContext context, required String title, required Widget message, required Iterable<String> actionLabels, required Iterable<T> actionValues, required List<Widget> actionIcons, SmoothModalSheetType type = SmoothModalSheetType.info, bool safeArea = true, Color? messageBackgroundColor}) → Future<T?>
A modal sheet asking for a confirmation
showSmoothDraggableModalSheet<T>({required BuildContext context, required SmoothModalSheetHeader header, required WidgetBuilder bodyBuilder, double? initHeight, double? minHeight, double? maxHeight, DraggableScrollableController? draggableScrollableController}) → Future<T?>
showSmoothListOfChoicesModalSheet<T>({required BuildContext context, required String title, required Iterable<String> labels, required Iterable<T> values, bool dynamicSize = false, Iterable<String>? subtitles, bool addEndArrowToItems = false, Widget? header, Widget? footer, Iterable<Widget>? prefixIcons, Color? prefixIconTint, Iterable<Widget>? suffixIcons, Color? suffixIconTint, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? contentPadding, EdgeInsetsGeometry? dividerPadding, TextStyle? textStyle, Color? headerBackgroundColor, Color? footerBackgroundColor, Color? prefixIndicatorColor, double footerSpace = 0.0, SmoothModalSheetType type = SmoothModalSheetType.info, bool? useRootNavigator}) → Future<T?>
A modal sheet with a limited list (no scroll)
showSmoothListOfItemsModalSheet<T>({required BuildContext context, required String title, required Iterable<ModalSheetItem> items, SmoothModalSheetType type = SmoothModalSheetType.info}) → Future<T?>
showSmoothModalSheet<T>({required BuildContext context, required WidgetBuilder builder, double? minHeight, double? maxHeight, bool? isScrollControlled, bool? useRootNavigator}) → Future<T?>
showSmoothModalSheetForTextField<T>({required BuildContext context, required SmoothModalSheetHeader header, required WidgetBuilder bodyBuilder, double? minHeight, double? maxHeight}) → Future<T?>