chore: enhance stories

This commit is contained in:
Christian Pauly 2021-12-28 19:30:19 +01:00
commit 733e4c7d7d
7 changed files with 100 additions and 8 deletions

View file

@ -142,7 +142,7 @@ class AddStoryController extends State<AddStoryPage> {
},
);
if (postResult.error == null) {
VRouter.of(context).to('/rooms');
VRouter.of(context).pop();
}
}

View file

@ -73,6 +73,17 @@ class _InviteStoryPageState extends State<InviteStoryPage> {
onPressed: () => Navigator.of(context).pop<bool>(false),
),
title: Text(L10n.of(context)!.whoCanSeeMyStories),
bottom: PreferredSize(
preferredSize: const Size.fromHeight(56),
child: ListTile(
title: Text(L10n.of(context)!.whoCanSeeMyStoriesDesc),
leading: CircleAvatar(
backgroundColor: Theme.of(context).secondaryHeaderColor,
foregroundColor: Theme.of(context).colorScheme.secondary,
child: const Icon(Icons.lock),
),
),
),
),
body: FutureBuilder<List<User>>(
future: loadContacts,