File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ class _FadeScaleTransitionDemoState extends State<FadeScaleTransitionDemo>
85
85
onPressed: () {
86
86
showModal <void >(
87
87
context: context,
88
- configuration: const FadeScaleTransitionConfiguration (),
89
88
builder: (BuildContext context) {
90
89
return _ExampleAlertDialog ();
91
90
},
Original file line number Diff line number Diff line change 4
4
5
5
import 'package:flutter/material.dart' ;
6
6
7
+ import 'fade_scale_transition.dart' ;
8
+
7
9
/// Signature for a function that creates a widget that builds a
8
10
/// transition.
9
11
///
@@ -45,7 +47,7 @@ typedef _ModalTransitionBuilder = Widget Function(
45
47
/// the modal's characteristics.
46
48
Future <T > showModal <T >({
47
49
@required BuildContext context,
48
- @required ModalConfiguration configuration,
50
+ ModalConfiguration configuration = const FadeScaleTransitionConfiguration () ,
49
51
bool useRootNavigator = true ,
50
52
WidgetBuilder builder,
51
53
}) {
You can’t perform that action at this time.
0 commit comments