1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Fix color scheme

This commit is contained in:
Pierre HUBERT 2021-04-13 19:06:31 +02:00
parent cc760c5a24
commit 6e274fa21a

View File

@ -44,6 +44,7 @@ class _PushNotificationsConfigurationRouteState
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Material( return Material(
textStyle: TextStyle(color: Colors.white),
color: config().splashBackgroundColor, color: config().splashBackgroundColor,
child: Center( child: Center(
child: Padding( child: Padding(
@ -63,7 +64,7 @@ class _PushNotificationsConfigurationRouteState
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Spacer(), Spacer(),
Icon(Icons.notifications_none), Icon(Icons.notifications_none, color: Colors.white),
Spacer(), Spacer(),
Text( Text(
tr("Comunic can now send you notifications to your device when the application is closed if you want."), tr("Comunic can now send you notifications to your device when the application is closed if you want."),
@ -171,16 +172,16 @@ class _NotificationOption extends StatelessWidget {
: Theme( : Theme(
data: Theme.of(context).copyWith( data: Theme.of(context).copyWith(
splashColor: Colors.transparent, splashColor: Colors.transparent,
highlightColor: Colors.transparent, highlightColor: Colors.transparent),
),
child: ListTile( child: ListTile(
leading: Radio( leading: Radio(
value: option, value: option,
groupValue: current, groupValue: current,
onChanged: onChanged, onChanged: onChanged,
fillColor: MaterialStateProperty.all(Colors.white),
), ),
title: Text(title), title: Text(title, style: TextStyle(color: Colors.white)),
subtitle: Text(description), subtitle: Text(description, style: TextStyle(color: Colors.white)),
contentPadding: EdgeInsets.all(0), contentPadding: EdgeInsets.all(0),
onTap: () => onChanged(option), onTap: () => onChanged(option),
), ),