chore: Follow up push rule settings
This commit is contained in:
parent
0106c0f6f6
commit
07fdfd1649
1 changed files with 102 additions and 98 deletions
|
|
@ -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 {
|
|||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue