diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index 182a606..74fb5eb 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -27,8 +27,7 @@ class HomePageState extends State { var textController = new TextEditingController(); showDialog( context: context, - child: new _SystemPadding( - child: new AlertDialog( + child: new AlertDialog( contentPadding: const EdgeInsets.all(16.0), content: new Row(children: [ Expanded( @@ -55,7 +54,7 @@ class HomePageState extends State { ) ], ), - )); + ); } @override @@ -98,18 +97,3 @@ class HomePageState extends State { ); } } - -class _SystemPadding extends StatelessWidget { - final Widget child; - - _SystemPadding({Key key, this.child}) : super(key: key); - - @override - Widget build(BuildContext context) { - var mediaQuery = MediaQuery.of(context); - return new AnimatedContainer( - padding: mediaQuery.viewInsets, - duration: const Duration(milliseconds: 300), - child: child); - } -}