mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +00:00
fix: Sharing invite link
This commit is contained in:
parent
f7d3250ff2
commit
ae61ce0a82
2 changed files with 2 additions and 3 deletions
|
@ -71,8 +71,7 @@ class NewPrivateChatController extends State<NewPrivateChat> {
|
||||||
}
|
}
|
||||||
|
|
||||||
void inviteAction() => FluffyShare.share(
|
void inviteAction() => FluffyShare.share(
|
||||||
L10n.of(context).inviteText(Matrix.of(context).client.userID,
|
'https://matrix.to/#/${Matrix.of(context).client.userID}',
|
||||||
'https://matrix.to/#/${Matrix.of(context).client.userID}'),
|
|
||||||
context,
|
context,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -56,10 +56,10 @@ class NewPrivateChatView extends StatelessWidget {
|
||||||
margin: EdgeInsets.all(_qrCodePadding),
|
margin: EdgeInsets.all(_qrCodePadding),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
padding: EdgeInsets.all(_qrCodePadding * 2),
|
padding: EdgeInsets.all(_qrCodePadding * 2),
|
||||||
color: Colors.white,
|
|
||||||
child: Material(
|
child: Material(
|
||||||
borderRadius: BorderRadius.circular(12),
|
borderRadius: BorderRadius.circular(12),
|
||||||
elevation: 4,
|
elevation: 4,
|
||||||
|
color: Colors.white,
|
||||||
child: QrImage(
|
child: QrImage(
|
||||||
data:
|
data:
|
||||||
'https://matrix.to/#/${Matrix.of(context).client.userID}',
|
'https://matrix.to/#/${Matrix.of(context).client.userID}',
|
||||||
|
|
Loading…
Reference in a new issue