From 7f15c1e6f41aad9cdf69b308a558186d0a8d68cc Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 3 Feb 2023 10:26:11 -0600 Subject: [PATCH] fix share button on receiving qr generate --- .../generate_receiving_uri_qr_code_view.dart | 51 +++++-------------- 1 file changed, 12 insertions(+), 39 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 ca219b92e..c0865d5a6 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 @@ -218,46 +218,19 @@ class _GenerateUriQrCodeViewState extends State { Center( child: SizedBox( width: width, - child: TextButton( - onPressed: () async { - // TODO: add save button as well - await _capturePng(true); - }, - style: Theme.of(context) - .extension()! - .getSecondaryEnabledButtonStyle(context), - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Center( - child: SvgPicture.asset( - Assets.svg.share, - width: 14, - height: 14, - ), - ), - const SizedBox( - width: 4, - ), - Column( - children: [ - Text( - "Share", - textAlign: TextAlign.center, - style: STextStyles.button(context).copyWith( - color: Theme.of(context) - .extension()! - .buttonTextSecondary, - ), - ), - const SizedBox( - height: 2, - ), - ], - ), - ], + child: SecondaryButton( + label: "Share", + icon: SvgPicture.asset( + Assets.svg.share, + width: 14, + height: 14, + color: Theme.of(context) + .extension()! + .buttonTextSecondary, ), + onPressed: () async { + await _capturePng(false); + }, ), ), ),