File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ class CustomDialog {
278278 Color _barrierColor = Colors .black.withOpacity (.3 );
279279 RouteTransitionsBuilder _transitionsBuilder;
280280 bool _barrierDismissible = true ;
281- Gravity _gravity = Gravity .bottom ;
281+ Gravity _gravity = Gravity .center ;
282282
283283 CustomDialog ({
284284 @required Widget child,
@@ -349,12 +349,18 @@ class CustomDialog {
349349 ).animate (animation);
350350 break ;
351351 case Gravity .bottom:
352- default :
353352 custom = Tween <Offset >(
354353 begin: Offset (0.0 , 1.0 ),
355354 end: Offset (0.0 , 0.0 ),
356355 ).animate (animation);
357356 break ;
357+ case Gravity .center:
358+ default :
359+ custom = Tween <Offset >(
360+ begin: Offset (0.0 , 0.0 ),
361+ end: Offset (0.0 , 0.0 ),
362+ ).animate (animation);
363+ break ;
358364 }
359365
360366 return SlideTransition (
You can’t perform that action at this time.
0 commit comments