design: Chat list design adjustments

This commit is contained in:
Krille 2023-08-11 14:07:51 +02:00
commit 6420f1d385
No known key found for this signature in database
10 changed files with 50 additions and 37 deletions

View file

@ -57,10 +57,7 @@ class NewPrivateChatController extends State<NewPrivateChat> {
return null;
}
void inviteAction() => FluffyShare.share(
'https://matrix.to/#/${Matrix.of(context).client.userID}',
context,
);
void inviteAction() => FluffyShare.shareInviteLink(context);
void openScannerAction() async {
if (PlatformInfos.isAndroid) {

View file

@ -33,7 +33,7 @@ class NewPrivateChatView extends StatelessWidget {
child: TextButton(
onPressed: () => context.go('/rooms/newgroup'),
child: Text(
L10n.of(context)!.createNewGroup,
L10n.of(context)!.createGroup,
style:
TextStyle(color: Theme.of(context).colorScheme.secondary),
),
@ -72,7 +72,7 @@ class NewPrivateChatView extends StatelessWidget {
foregroundColor: Colors.black,
),
icon: Icon(Icons.adaptive.share_outlined),
label: Text(L10n.of(context)!.shareYourInviteLink),
label: Text(L10n.of(context)!.shareInviteLink),
onPressed: controller.inviteAction,
),
const SizedBox(height: 8),