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(