From ba80309ff39e891062ce8da11b260dc38786fe97 Mon Sep 17 00:00:00 2001 From: malik1004x Date: Thu, 4 Jun 2026 18:13:02 +0200 Subject: [PATCH] fix send external qr size (#3299) --- .../swap_page/swap_send_external_modal.dart | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/lib/new-ui/widgets/swap_page/swap_send_external_modal.dart b/lib/new-ui/widgets/swap_page/swap_send_external_modal.dart index 9ee6fadcb..e85620aa3 100644 --- a/lib/new-ui/widgets/swap_page/swap_send_external_modal.dart +++ b/lib/new-ui/widgets/swap_page/swap_send_external_modal.dart @@ -123,18 +123,27 @@ class _SwapSendExternalModalState extends State { largeQrMode = !largeQrMode; }); }, - child: AnimatedContainer( + child: TweenAnimationBuilder( duration: const Duration(milliseconds: 400), curve: Curves.easeOutCubic, - width: resolvedSize, - height: resolvedSize, - child: ClipRRect( - borderRadius: BorderRadius.circular(16), - child: QrImage( - embeddedImagePath: widget.from.iconPath, - data: uri.toString(), - ), + tween: Tween( + begin: resolvedSize, + end: resolvedSize, ), + builder: (context, animatedSize, child) { + return SizedBox( + width: animatedSize, + height: animatedSize, + child: ClipRRect( + borderRadius: BorderRadius.circular(16), + child: QrImage( + size: animatedSize, + embeddedImagePath: widget.from.iconPath, + data: uri.toString(), + ), + ), + ); + }, ), ), AddressFormatter.buildSegmentedAddress(