diff --git a/lib/src/screens/dashboard/widgets/wallet_card.dart b/lib/src/screens/dashboard/widgets/wallet_card.dart index d3623e261..c1b2ba7e9 100644 --- a/lib/src/screens/dashboard/widgets/wallet_card.dart +++ b/lib/src/screens/dashboard/widgets/wallet_card.dart @@ -45,7 +45,7 @@ class WalletCardState extends State { } void afterLayout(dynamic _) { - screenWidth = MediaQuery.of(context).size.width; + screenWidth = MediaQuery.of(context).size.width - 20; setState(() { cardWidth = screenWidth; opacity = 1; @@ -138,8 +138,7 @@ class WalletCardState extends State { height: cardHeight, child: Stack( children: [ - AnimatedContainer( - duration: Duration(milliseconds: 0), + Container( height: cardHeight, width: indicatorWidth, decoration: BoxDecoration( @@ -151,6 +150,18 @@ class WalletCardState extends State { ) ), ), + progress != 1 + ? Positioned( + left: indicatorWidth, + top: 0, + bottom: 0, + child: Container( + width: 1, + height: cardHeight, + color: PaletteDark.borderCardColor, + ) + ) + : Offstage(), isDraw ? Positioned( left: 20, right: 20,