From 500dc297d31bc5342ea619a713a252dc784e0a96 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Sun, 19 Jun 2022 07:59:51 +0300 Subject: [PATCH] Changed red button text color to white --- lib/pages/edit_component.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pages/edit_component.dart b/lib/pages/edit_component.dart index c09f5ce..204c368 100644 --- a/lib/pages/edit_component.dart +++ b/lib/pages/edit_component.dart @@ -98,6 +98,7 @@ class EditComponentPage extends HookWidget { Navigator.of(context).pop(true); }, style: ButtonStyle( + foregroundColor: MaterialStateProperty.all(Colors.white), backgroundColor: MaterialStateProperty.all(Colors.red), ), child: const Text('Discard'), @@ -193,6 +194,7 @@ class EditComponentPage extends HookWidget { Navigator.of(context).pop(true); }, style: ButtonStyle( + foregroundColor: MaterialStateProperty.all(Colors.white), backgroundColor: MaterialStateProperty.all(Colors.red), ), child: const Text('Remove'), @@ -285,6 +287,7 @@ class EditComponentPage extends HookWidget { Navigator.of(context).pop(true); }, style: ButtonStyle( + foregroundColor: MaterialStateProperty.all(Colors.white), backgroundColor: MaterialStateProperty.all(Colors.red), ), child: const Text('Remove'),