From 6e274fa21aaf6cf7febffe8d04ab88a9f62f6136 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 13 Apr 2021 19:06:31 +0200 Subject: [PATCH] Fix color scheme --- lib/ui/routes/push_notifications_route.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/ui/routes/push_notifications_route.dart b/lib/ui/routes/push_notifications_route.dart index 5bd9b1f..19918f5 100644 --- a/lib/ui/routes/push_notifications_route.dart +++ b/lib/ui/routes/push_notifications_route.dart @@ -44,6 +44,7 @@ class _PushNotificationsConfigurationRouteState @override Widget build(BuildContext context) { return Material( + textStyle: TextStyle(color: Colors.white), color: config().splashBackgroundColor, child: Center( child: Padding( @@ -63,7 +64,7 @@ class _PushNotificationsConfigurationRouteState mainAxisAlignment: MainAxisAlignment.center, children: [ Spacer(), - Icon(Icons.notifications_none), + Icon(Icons.notifications_none, color: Colors.white), Spacer(), Text( tr("Comunic can now send you notifications to your device when the application is closed if you want."), @@ -170,17 +171,17 @@ class _NotificationOption extends StatelessWidget { ? Container() : Theme( data: Theme.of(context).copyWith( - splashColor: Colors.transparent, - highlightColor: Colors.transparent, - ), + splashColor: Colors.transparent, + highlightColor: Colors.transparent), child: ListTile( leading: Radio( value: option, groupValue: current, onChanged: onChanged, + fillColor: MaterialStateProperty.all(Colors.white), ), - title: Text(title), - subtitle: Text(description), + title: Text(title, style: TextStyle(color: Colors.white)), + subtitle: Text(description, style: TextStyle(color: Colors.white)), contentPadding: EdgeInsets.all(0), onTap: () => onChanged(option), ),