fix send external qr size (#3299)
malik1004x committed
Jun 4, 2026 at 18:13 UTC
ba80309ff39e891062ce8da11b260dc38786fe97
1 file changed
+18
-9
lib/new-ui/widgets/swap_page/swap_send_external_modal.dart
+18
-9
@@ -123,18 +123,27 @@ class _SwapSendExternalModalState extends State<SwapSendExternalModal> {
123
largeQrMode = !largeQrMode;
124
});
125
},
126
- child: AnimatedContainer(
126
+ child: TweenAnimationBuilder<double>(
127
duration: const Duration(milliseconds: 400),
128
curve: Curves.easeOutCubic,
129
- width: resolvedSize,
130
- height: resolvedSize,
131
- child: ClipRRect(
132
- borderRadius: BorderRadius.circular(16),
133
- child: QrImage(
134
- embeddedImagePath: widget.from.iconPath,
135
- data: uri.toString(),
136
- ),
129
+ tween: Tween<double>(
130
+ begin: resolvedSize,
131
+ end: resolvedSize,
132
),
133
+ builder: (context, animatedSize, child) {
134
+ return SizedBox(
135
+ width: animatedSize,
136
+ height: animatedSize,
137
+ child: ClipRRect(
138
+ borderRadius: BorderRadius.circular(16),
139
+ child: QrImage(
140
+ size: animatedSize,
141
+ embeddedImagePath: widget.from.iconPath,
142
+ data: uri.toString(),
143
+ ),
144
+ ),
145
+ );
146
+ },
147
),
148
),
149
AddressFormatter.buildSegmentedAddress(