CWA-198 | added right border of animated indicator in the wallet card
Oleksandr Sobol committed
Apr 30, 2020 at 22:54 UTC
bd5a4a9f03e09f8213202f49d65e1980fab274e0
1 file changed
+14
-3
lib/src/screens/dashboard/widgets/wallet_card.dart
+14
-3
@@ -45,7 +45,7 @@ class WalletCardState extends State<WalletCard> {
45
}
46
47
void afterLayout(dynamic _) {
48
- screenWidth = MediaQuery.of(context).size.width;
48
+ screenWidth = MediaQuery.of(context).size.width - 20;
49
setState(() {
50
cardWidth = screenWidth;
51
opacity = 1;
@@ -138,8 +138,7 @@ class WalletCardState extends State<WalletCard> {
138
height: cardHeight,
139
child: Stack(
140
children: <Widget>[
141
- AnimatedContainer(
142
- duration: Duration(milliseconds: 0),
141
+ Container(
142
height: cardHeight,
143
width: indicatorWidth,
144
decoration: BoxDecoration(
@@ -151,6 +150,18 @@ class WalletCardState extends State<WalletCard> {
150
)
151
),
152
),
153
+ progress != 1
154
+ ? Positioned(
155
+ left: indicatorWidth,
156
+ top: 0,
157
+ bottom: 0,
158
+ child: Container(
159
+ width: 1,
160
+ height: cardHeight,
161
+ color: PaletteDark.borderCardColor,
162
+ )
163
+ )
164
+ : Offstage(),
165
isDraw ? Positioned(
166
left: 20,
167
right: 20,