From 1f110a8d0e4b3c68f090398ed85d262eb25a1b4a Mon Sep 17 00:00:00 2001 From: Liat Ben-Haim Date: Wed, 12 Jul 2023 18:42:55 +0200 Subject: [PATCH] feat: button icons reflect function and buttons are circles --- lib/data_entry/view.dart | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/lib/data_entry/view.dart b/lib/data_entry/view.dart index 62efa4e..5a5cad6 100644 --- a/lib/data_entry/view.dart +++ b/lib/data_entry/view.dart @@ -21,14 +21,22 @@ class DataEntryPage extends StatelessWidget { Expanded( child: ElevatedButton( onPressed: () {}, - child: const Icon(Icons.account_balance), + style: ElevatedButton.styleFrom( + shape: CircleBorder(), + padding: EdgeInsets.all(24), + ), + child: const Icon(Icons.error_outline, size: 120,), ), ), SizedBox.fromSize(size: const Size.fromWidth(32)), Expanded( child: ElevatedButton( onPressed: () {}, - child: const Icon(Icons.add_a_photo), + style: ElevatedButton.styleFrom( + shape: CircleBorder(), + padding: EdgeInsets.all(24), + ), + child: const Icon(Icons.notifications_paused_sharp, size: 120,), ), ), ], @@ -47,7 +55,11 @@ class DataEntryPage extends StatelessWidget { flex: 10, child: ElevatedButton( onPressed: () {}, - child: const Icon(Icons.account_balance), + style: ElevatedButton.styleFrom( + shape: CircleBorder(), + padding: EdgeInsets.all(24), + ), + child: const Icon(Icons.electric_bolt, size: 120,), ), ), SizedBox.fromSize(size: const Size.fromWidth(32)), @@ -55,7 +67,11 @@ class DataEntryPage extends StatelessWidget { flex: 10, child: ElevatedButton( onPressed: () {}, - child: const Icon(Icons.add_a_photo), + style: ElevatedButton.styleFrom( + shape: CircleBorder(), + padding: EdgeInsets.all(24), + ), + child: const Icon(Icons.medication_outlined, size: 120,), ), ), ],