design: Chat list design adjustments
This commit is contained in:
parent
7faa01f67a
commit
6420f1d385
10 changed files with 50 additions and 37 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue