design: Adaptive switches

This commit is contained in:
Krille Fear 2021-11-27 10:10:29 +01:00
commit 956ee5bfc6
8 changed files with 17 additions and 19 deletions

View file

@ -83,12 +83,10 @@ class EmotesSettingsView extends StatelessWidget {
),
),
if (controller.room != null)
ListTile(
SwitchListTile.adaptive(
title: Text(L10n.of(context).enableEmotesGlobally),
trailing: Switch(
value: controller.isGloballyActive(client),
onChanged: controller.setIsGloballyActive,
),
value: controller.isGloballyActive(client),
onChanged: controller.setIsGloballyActive,
),
if (!controller.readonly || controller.room != null)
Divider(