showDynamicModalBottomSheet<T> function

Future<T> showDynamicModalBottomSheet<T>(
  1. {@required BuildContext context,
  2. @required WidgetBuilder builder}
)

底部动态弹窗组件

Implementation

Future<T> showDynamicModalBottomSheet<T>({
  @required BuildContext context,
  @required WidgetBuilder builder,
}) {
  assert(context != null);
  assert(builder != null);
  assert(debugCheckHasMaterialLocalizations(context));
  return Navigator.push(context, _DynamicModalBottomSheetRoute<T>(
    builder: builder,
    theme: Theme.of(context, shadowThemeOnly: true),
    barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
  ));
}