use helper functions
This commit is contained in:
parent
86ad944bbd
commit
81ea5c051b
|
@ -209,7 +209,7 @@ class CommunitiesTab extends HookWidget {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
trailing: _CommunitySubscribeToggle(
|
trailing: _CommunitySubscribeToggle(
|
||||||
instanceHost: comm.communityActorId.split('/')[2],
|
instanceHost: comm.instanceHost,
|
||||||
communityId: comm.communityId,
|
communityId: comm.communityId,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||||
import 'package:flutter_slidable/flutter_slidable.dart';
|
import 'package:flutter_slidable/flutter_slidable.dart';
|
||||||
|
@ -72,7 +73,7 @@ class AppearanceConfigPage extends HookWidget {
|
||||||
for (final theme in ThemeMode.values)
|
for (final theme in ThemeMode.values)
|
||||||
RadioListTile<ThemeMode>(
|
RadioListTile<ThemeMode>(
|
||||||
value: theme,
|
value: theme,
|
||||||
title: Text(theme.toString().split('.')[1]),
|
title: Text(describeEnum(theme)),
|
||||||
groupValue: configStore.theme,
|
groupValue: configStore.theme,
|
||||||
onChanged: (selected) {
|
onChanged: (selected) {
|
||||||
configStore.theme = selected;
|
configStore.theme = selected;
|
||||||
|
|
Loading…
Reference in New Issue