diff options
author | Felipe Erias <felipeerias@igalia.com> | 2021-11-12 12:15:21 +0900 |
---|---|---|
committer | Felipe Erias <felipeerias@igalia.com> | 2021-11-12 12:15:21 +0900 |
commit | d3e731d226bdab810572c14b25d6991268315bba (patch) | |
tree | d8478447e692f8d93f0bbee41ef97697067b8136 | |
parent | 6cdae5992de2b9865a3a05885e91338160243674 (diff) |
Style home page
-rw-r--r-- | lib/page_home.dart | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/page_home.dart b/lib/page_home.dart index ede3e36..fe35025 100644 --- a/lib/page_home.dart +++ b/lib/page_home.dart @@ -24,21 +24,23 @@ class HomePage extends StatelessWidget { Widget createItem(BuildContext context, IconData icon, int tabPosition) { final double size = MediaQuery.of(context).size.width / 6; + final double padding = size / 4; + final double border = padding / 4; return Padding( padding: const EdgeInsets.symmetric(vertical: 8.0), - child: ElevatedButton( - style: ElevatedButton.styleFrom( + child: OutlinedButton( + style: OutlinedButton.styleFrom( shape: CircleBorder(), - padding: EdgeInsets.all(size / 4), + padding: EdgeInsets.all(padding), primary: Colors.blue, - onPrimary: Colors.red, + side: BorderSide(width: border, color: Colors.lightBlue.shade50) ), onPressed: () { onSetNavigationIndex(tabPosition); }, child: Icon( icon, - color: Colors.white, + color: Colors.blue, size: size / 2, ), ), |