mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 15:02:33 +01:00
Merge branch 'krille/fix-qr-code' into 'main'
design: Place share button under qr code See merge request famedly/fluffychat!569
This commit is contained in:
commit
2988d6f0b5
@ -51,15 +51,17 @@ class NewPrivateChatView extends StatelessWidget {
|
|||||||
borderRadius: BorderRadius.circular(12),
|
borderRadius: BorderRadius.circular(12),
|
||||||
elevation: 4,
|
elevation: 4,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
child: QrImage(
|
child: Column(
|
||||||
data:
|
mainAxisSize: MainAxisSize.min,
|
||||||
'https://matrix.to/#/${Matrix.of(context).client.userID}',
|
children: [
|
||||||
version: QrVersions.auto,
|
QrImage(
|
||||||
size: min(MediaQuery.of(context).size.width - 16, 200),
|
data:
|
||||||
embeddedImage: const AssetImage('assets/share.png'),
|
'https://matrix.to/#/${Matrix.of(context).client.userID}',
|
||||||
embeddedImageStyle: QrEmbeddedImageStyle(
|
version: QrVersions.auto,
|
||||||
size: const Size(48, 48),
|
size: min(MediaQuery.of(context).size.width - 16, 200),
|
||||||
),
|
),
|
||||||
|
Image.asset('assets/share.png', width: 48, height: 48),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user