feat: button icons reflect function and buttons are circles

This commit is contained in:
Liat Ben-Haim 2023-07-12 18:42:55 +02:00
parent 4fe4173063
commit 1f110a8d0e

View file

@ -21,14 +21,22 @@ class DataEntryPage extends StatelessWidget {
Expanded( Expanded(
child: ElevatedButton( child: ElevatedButton(
onPressed: () {}, 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)), SizedBox.fromSize(size: const Size.fromWidth(32)),
Expanded( Expanded(
child: ElevatedButton( child: ElevatedButton(
onPressed: () {}, 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, flex: 10,
child: ElevatedButton( child: ElevatedButton(
onPressed: () {}, 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)), SizedBox.fromSize(size: const Size.fromWidth(32)),
@ -55,7 +67,11 @@ class DataEntryPage extends StatelessWidget {
flex: 10, flex: 10,
child: ElevatedButton( child: ElevatedButton(
onPressed: () {}, 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,),
), ),
), ),
], ],