mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:55:12 +00:00
design: Place share button under qr code
This should make the qr code scanning more reliable.
This commit is contained in:
parent
8a6b59d8f0
commit
daadef7c59
1 changed files with 11 additions and 9 deletions
|
@ -51,15 +51,17 @@ class NewPrivateChatView extends StatelessWidget {
|
|||
borderRadius: BorderRadius.circular(12),
|
||||
elevation: 4,
|
||||
color: Colors.white,
|
||||
child: QrImage(
|
||||
data:
|
||||
'https://matrix.to/#/${Matrix.of(context).client.userID}',
|
||||
version: QrVersions.auto,
|
||||
size: min(MediaQuery.of(context).size.width - 16, 200),
|
||||
embeddedImage: const AssetImage('assets/share.png'),
|
||||
embeddedImageStyle: QrEmbeddedImageStyle(
|
||||
size: const Size(48, 48),
|
||||
),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
QrImage(
|
||||
data:
|
||||
'https://matrix.to/#/${Matrix.of(context).client.userID}',
|
||||
version: QrVersions.auto,
|
||||
size: min(MediaQuery.of(context).size.width - 16, 200),
|
||||
),
|
||||
Image.asset('assets/share.png', width: 48, height: 48),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue