diff options
author | Felipe Erias <felipeerias@igalia.com> | 2021-11-12 13:59:07 +0900 |
---|---|---|
committer | Felipe Erias <felipeerias@igalia.com> | 2021-11-12 13:59:07 +0900 |
commit | 3cdd54458bfc6ba0066cb2a82c4a91bd4baf9b82 (patch) | |
tree | 60fb1bd885862af8f02beb2b837f401593e77576 /lib/page_home.dart | |
parent | d3e731d226bdab810572c14b25d6991268315bba (diff) |
Nice animation when switching pages
Diffstat (limited to 'lib/page_home.dart')
-rw-r--r-- | lib/page_home.dart | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/page_home.dart b/lib/page_home.dart index fe35025..1084a4f 100644 --- a/lib/page_home.dart +++ b/lib/page_home.dart @@ -10,7 +10,10 @@ class HomePage extends StatelessWidget { Widget build(BuildContext context) { final double spacing = MediaQuery.of(context).size.width / 32; final double runSpacing = spacing / 2; - return Center( + return Container( + color: Colors.white, + constraints: BoxConstraints.expand(), + alignment: Alignment.center, child: Wrap( spacing: spacing, runSpacing: runSpacing, |