modal_top_sheet library
Top-aligned modal sheets, like an app bar dropdown.
Classes
- ModalTopSheet
- The layout of a top sheet: the child pinned to the top of the screen.
-
ModalTopSheetRoute<
T> - The route behind showModalTopSheet.
Functions
-
showModalTopSheet<
T> (BuildContext context, {required Widget child, bool isDismissible = true, Color? barrierColor = const Color(0x80000000), String? barrierLabel, Duration duration = const Duration(milliseconds: 300), Duration? reverseDuration, Curve curve = Curves.easeOutCubic, Curve reverseCurve = Curves.easeInCubic, EdgeInsetsGeometry padding = const EdgeInsets.only(top: kToolbarHeight), bool useSafeArea = true, RouteSettings? routeSettings}) → Future< T?> - Shows a sheet that slides in from the top, like an app bar dropdown.