Skip to content

Commit

Permalink
Fix animation width issue in ReceivedTick widget
Browse files Browse the repository at this point in the history
  • Loading branch information
mocodesmo committed May 2, 2024
1 parent 281da37 commit 3b853e8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/swap/receive.dart
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,14 @@ class ReceivedTick extends StatelessWidget {
Widget build(BuildContext context) {
return AnimatedContainer(
height: 300,
width: 300,
width: double.infinity,
duration: const Duration(milliseconds: 100),
child: received
? LottieBuilder.asset(
'assets/loaderanimation.json',
repeat: false,
? Center(
child: LottieBuilder.asset(
'assets/loaderanimation.json',
repeat: false,
),
)
: const Center(
child: SizedBox(
Expand Down

0 comments on commit 3b853e8

Please sign in to comment.