design: Adaptive switches
This commit is contained in:
parent
bc767da271
commit
956ee5bfc6
8 changed files with 17 additions and 19 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue