From 11bae1740db7eb132bb755717d45dee6ee4c80b1 Mon Sep 17 00:00:00 2001 From: julian <julian@cypherstack.com> Date: Tue, 15 Nov 2022 19:52:20 -0600 Subject: [PATCH] desktop qr save only button --- .../generate_receiving_uri_qr_code_view.dart | 42 +++++++++++-------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/lib/pages/receive_view/generate_receiving_uri_qr_code_view.dart b/lib/pages/receive_view/generate_receiving_uri_qr_code_view.dart index 75d0deba0..981def830 100644 --- a/lib/pages/receive_view/generate_receiving_uri_qr_code_view.dart +++ b/lib/pages/receive_view/generate_receiving_uri_qr_code_view.dart @@ -547,6 +547,7 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> { borderColor: Theme.of(context) .extension<StackColors>()! .background, + width: isDesktop ? 370 : null, child: Column( children: [ Text( @@ -578,26 +579,31 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> { height: 12, ), Row( + mainAxisAlignment: isDesktop + ? MainAxisAlignment.center + : MainAxisAlignment.start, children: [ - SecondaryButton( - width: 170, - desktopMed: true, - onPressed: () async { - await _capturePng(false); - }, - label: "Share", - icon: SvgPicture.asset( - Assets.svg.share, - width: 20, - height: 20, - color: Theme.of(context) - .extension<StackColors>()! - .buttonTextSecondary, + if (!isDesktop) + SecondaryButton( + width: 170, + desktopMed: true, + onPressed: () async { + await _capturePng(false); + }, + label: "Share", + icon: SvgPicture.asset( + Assets.svg.share, + width: 20, + height: 20, + color: Theme.of(context) + .extension<StackColors>()! + .buttonTextSecondary, + ), + ), + if (!isDesktop) + const SizedBox( + width: 16, ), - ), - const SizedBox( - width: 16, - ), PrimaryButton( width: 170, desktopMed: true,