Jaime Blasco
@@ -165,7 +165,7 @@ class _MyHomePageState extends State<MyHomePage> { @@ -165,7 +165,7 @@ class _MyHomePageState extends State<MyHomePage> {
165 ModalFit(scrollController: scrollController), 165 ModalFit(scrollController: scrollController),
166 )), 166 )),
167 ListTile( 167 ListTile(
168 - title: Text('Cupertino Small Modal forzed to expand'), 168 + title: Text('Cupertino Small Modal forced to expand'),
169 onTap: () => showCupertinoModalBottomSheet( 169 onTap: () => showCupertinoModalBottomSheet(
170 expand: true, 170 expand: true,
171 context: context, 171 context: context,
@@ -194,7 +194,7 @@ class _MyHomePageState extends State<MyHomePage> { @@ -194,7 +194,7 @@ class _MyHomePageState extends State<MyHomePage> {
194 scrollController: scrollController), 194 scrollController: scrollController),
195 )), 195 )),
196 ListTile( 196 ListTile(
197 - title: Text('Cupertino Navigator + Scroll + WillScope'), 197 + title: Text('Cupertino Navigator + Scroll + WillPopScope'),
198 onTap: () => showCupertinoModalBottomSheet( 198 onTap: () => showCupertinoModalBottomSheet(
199 expand: true, 199 expand: true,
200 context: context, 200 context: context,
@@ -204,7 +204,7 @@ class _MyHomePageState extends State<MyHomePage> { @@ -204,7 +204,7 @@ class _MyHomePageState extends State<MyHomePage> {
204 scrollController: scrollController), 204 scrollController: scrollController),
205 )), 205 )),
206 ListTile( 206 ListTile(
207 - title: Text('Cupertino Modal with WillScope'), 207 + title: Text('Cupertino Modal with WillPopScope'),
208 onTap: () => showCupertinoModalBottomSheet( 208 onTap: () => showCupertinoModalBottomSheet(
209 expand: true, 209 expand: true,
210 context: context, 210 context: context,
@@ -30,13 +30,11 @@ typedef WidgetWithChildBuilder = Widget Function( @@ -30,13 +30,11 @@ typedef WidgetWithChildBuilder = Widget Function(
30 /// See also: 30 /// See also:
31 /// 31 ///
32 /// * [showMaterialModalBottomSheet] which can be used to display a modal bottom 32 /// * [showMaterialModalBottomSheet] which can be used to display a modal bottom
  33 +/// sheet with Material appareance.
  34 +/// * [showCupertinoModalBottomSheet] which can be used to display a modal bottom
33 /// sheet with Cupertino appareance. 35 /// sheet with Cupertino appareance.
34 class ModalBottomSheet extends StatefulWidget { 36 class ModalBottomSheet extends StatefulWidget {
35 /// Creates a bottom sheet. 37 /// Creates a bottom sheet.
36 - ///  
37 - /// Typically, bottom sheets are created implicitly by  
38 - /// [ScaffoldState.showBottomSheet], for persistent bottom sheets, or by  
39 - /// [showModalBottomSheet], for modal bottom sheets.  
40 const ModalBottomSheet({ 38 const ModalBottomSheet({
41 Key key, 39 Key key,
42 this.animationController, 40 this.animationController,
@@ -85,8 +83,6 @@ class ModalBottomSheet extends StatefulWidget { @@ -85,8 +83,6 @@ class ModalBottomSheet extends StatefulWidget {
85 83
86 /// A builder for the contents of the sheet. 84 /// A builder for the contents of the sheet.
87 /// 85 ///
88 - /// The bottom sheet will wrap the widget produced by this builder in a  
89 - /// [Material] widget.  
90 final ScrollWidgetBuilder builder; 86 final ScrollWidgetBuilder builder;
91 87
92 /// If true, the bottom sheet can be dragged up and down and dismissed by 88 /// If true, the bottom sheet can be dragged up and down and dismissed by