design: Adaptive switches
This commit is contained in:
parent
bc767da271
commit
956ee5bfc6
8 changed files with 17 additions and 19 deletions
|
|
@ -35,7 +35,7 @@ class SettingsNotificationsView extends StatelessWidget {
|
|||
builder: (BuildContext context, _) {
|
||||
return Column(
|
||||
children: [
|
||||
SwitchListTile(
|
||||
SwitchListTile.adaptive(
|
||||
value: !Matrix.of(context).client.allPushNotificationsMuted,
|
||||
title: Text(
|
||||
L10n.of(context).notificationsEnabledForThisAccount),
|
||||
|
|
@ -72,7 +72,7 @@ class SettingsNotificationsView extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
for (var item in NotificationSettingsItem.items)
|
||||
SwitchListTile(
|
||||
SwitchListTile.adaptive(
|
||||
value: controller.getNotificationSetting(item) ?? true,
|
||||
title: Text(item.title(context)),
|
||||
onChanged: (bool enabled) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue