showTxModalBottomSheet<T> function

Future<T?> showTxModalBottomSheet<T>(
  1. BuildContext context, {
  2. required WidgetBuilder? builder,
  3. Color? backgroundColor,
  4. double? elevation,
  5. ShapeBorder? shape,
  6. Clip? clipBehavior,
  7. Color? barrierColor,
  8. bool isScrollControlled = false,
  9. bool useRootNavigator = false,
  10. bool isDismissible = true,
  11. bool enableDrag = true,
  12. EdgeInsetsGeometry? padding,
  13. EdgeInsetsGeometry? contentPadding,
  14. bool persistent = false,
  15. bool? ignoreSafeArea,
  16. RouteSettings? settings,
  17. Duration? enterBottomSheetDuration,
  18. Duration? exitBottomSheetDuration,
})

Implementation

Future<T?> showTxModalBottomSheet<T>(
  BuildContext context, {
  required WidgetBuilder? builder,
  Color? backgroundColor,
  double? elevation,
  ShapeBorder? shape,
  Clip? clipBehavior,
  Color? barrierColor,
  bool isScrollControlled = false,
  bool useRootNavigator = false,
  bool isDismissible = true,
  bool enableDrag = true,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? contentPadding,
  bool persistent = false,
  bool? ignoreSafeArea,
  RouteSettings? settings,
  Duration? enterBottomSheetDuration,
  Duration? exitBottomSheetDuration,
}) {
  final NavigatorState navigator =
      Navigator.of(context, rootNavigator: useRootNavigator);
  return navigator.push(TxModalBottomSheetRoute<T>(
    context,
    builder: builder,
    isPersistent: persistent,
    theme: Theme.of(context),
    isScrollControlled: isScrollControlled,
    barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
    backgroundColor: backgroundColor,
    elevation: elevation,
    shape: shape,
    removeTop: ignoreSafeArea ?? true,
    clipBehavior: clipBehavior,
    isDismissible: isDismissible,
    modalBarrierColor: barrierColor,
    settings: settings,
    enableDrag: enableDrag,
    enterBottomSheetDuration:
        enterBottomSheetDuration ?? const Duration(milliseconds: 250),
    exitBottomSheetDuration:
        exitBottomSheetDuration ?? const Duration(milliseconds: 200),
  ));
}