Jaime Blasco
... ... @@ -165,7 +165,7 @@ class _MyHomePageState extends State<MyHomePage> {
ModalFit(scrollController: scrollController),
)),
ListTile(
title: Text('Cupertino Small Modal forzed to expand'),
title: Text('Cupertino Small Modal forced to expand'),
onTap: () => showCupertinoModalBottomSheet(
expand: true,
context: context,
... ... @@ -194,7 +194,7 @@ class _MyHomePageState extends State<MyHomePage> {
scrollController: scrollController),
)),
ListTile(
title: Text('Cupertino Navigator + Scroll + WillScope'),
title: Text('Cupertino Navigator + Scroll + WillPopScope'),
onTap: () => showCupertinoModalBottomSheet(
expand: true,
context: context,
... ... @@ -204,7 +204,7 @@ class _MyHomePageState extends State<MyHomePage> {
scrollController: scrollController),
)),
ListTile(
title: Text('Cupertino Modal with WillScope'),
title: Text('Cupertino Modal with WillPopScope'),
onTap: () => showCupertinoModalBottomSheet(
expand: true,
context: context,
... ...
... ... @@ -30,13 +30,11 @@ typedef WidgetWithChildBuilder = Widget Function(
/// See also:
///
/// * [showMaterialModalBottomSheet] which can be used to display a modal bottom
/// sheet with Material appareance.
/// * [showCupertinoModalBottomSheet] which can be used to display a modal bottom
/// sheet with Cupertino appareance.
class ModalBottomSheet extends StatefulWidget {
/// Creates a bottom sheet.
///
/// Typically, bottom sheets are created implicitly by
/// [ScaffoldState.showBottomSheet], for persistent bottom sheets, or by
/// [showModalBottomSheet], for modal bottom sheets.
const ModalBottomSheet({
Key key,
this.animationController,
... ... @@ -85,8 +83,6 @@ class ModalBottomSheet extends StatefulWidget {
/// A builder for the contents of the sheet.
///
/// The bottom sheet will wrap the widget produced by this builder in a
/// [Material] widget.
final ScrollWidgetBuilder builder;
/// If true, the bottom sheet can be dragged up and down and dismissed by
... ...