From d3e731d226bdab810572c14b25d6991268315bba Mon Sep 17 00:00:00 2001 From: Felipe Erias Date: Fri, 12 Nov 2021 12:15:21 +0900 Subject: Style home page --- lib/page_home.dart | 12 +++++++----- 1 file 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, ), ), -- cgit 1.2.3-korg