diff --git a/lib/views/profile/profile.dart b/lib/views/profile/profile.dart index 1ff15cc7..bfb645d7 100644 --- a/lib/views/profile/profile.dart +++ b/lib/views/profile/profile.dart @@ -185,26 +185,43 @@ class ProfilesColumn extends StatelessWidget { height: 6, ), ElevatedButton.icon( - onPressed: () { - try { - addProfile(); - ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: const Text('Profile Added Successfully'), - backgroundColor: AppSettings.isDarkMode - ? const Color.fromARGB(255, 61, 61, 61) - : const Color.fromARGB(255, 39, 39, 39), - duration: const Duration(seconds: 2))); - } catch (e) { - ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: const Text('Profile Additon Failed'), - backgroundColor: AppSettings.isDarkMode - ? const Color.fromARGB(255, 61, 61, 61) - : const Color.fromARGB(255, 39, 39, 39), - duration: const Duration(seconds: 2))); - } - }, - icon: const Icon(Icons.add), - label: const Text('Add new Profile')) + onPressed: () { + try { + addProfile(); + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: const Text('Profile Added Successfully'), + backgroundColor: AppSettings.isDarkMode + ? const Color.fromARGB(255, 61, 61, 61) + : const Color.fromARGB(255, 39, 39, 39), + duration: const Duration(seconds: 2))); + } catch (e) { + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: const Text('Profile Additon Failed'), + backgroundColor: AppSettings.isDarkMode + ? const Color.fromARGB(255, 61, 61, 61) + : const Color.fromARGB(255, 39, 39, 39), + duration: const Duration(seconds: 2))); + } + }, + style: ButtonStyle( + backgroundColor: MaterialStateProperty.all( + AppSettings.isDarkMode + ? const Color.fromARGB(255, 61, 61, 61) + : Colors.white, + ), + ), + icon: Icon(Icons.add, + color: AppSettings.isDarkMode + ? Colors.deepPurpleAccent + : Colors.deepPurple), + label: Text( + 'Add new Profile', + style: TextStyle( + color: + AppSettings.isDarkMode ? Colors.white : Colors.deepPurple, + ), + ), + ) ], ), );