|
|
|
@ -43,7 +43,8 @@ class SettingsNotificationsView extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
builder: (BuildContext context, _) {
|
|
|
|
|
final theme = Theme.of(context);
|
|
|
|
|
return Column(
|
|
|
|
|
return SelectionArea(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
if (pushRules != null)
|
|
|
|
|
for (final category in pushCategories) ...[
|
|
|
|
@ -57,7 +58,7 @@ class SettingsNotificationsView extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
for (final rule in category.rules)
|
|
|
|
|
SwitchListTile.adaptive(
|
|
|
|
|
ListTile(
|
|
|
|
|
title: Text(rule.getPushRuleName(L10n.of(context))),
|
|
|
|
|
subtitle: Text.rich(
|
|
|
|
|
TextSpan(
|
|
|
|
@ -88,6 +89,7 @@ class SettingsNotificationsView extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
trailing: Switch.adaptive(
|
|
|
|
|
value: rule.enabled,
|
|
|
|
|
onChanged: controller.isLoading
|
|
|
|
|
? null
|
|
|
|
@ -101,6 +103,7 @@ class SettingsNotificationsView extends StatelessWidget {
|
|
|
|
|
rule,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Divider(color: theme.dividerColor),
|
|
|
|
|
],
|
|
|
|
|
ListTile(
|
|
|
|
@ -154,6 +157,7 @@ class SettingsNotificationsView extends StatelessWidget {
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|