mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-25 08:39:06 +00:00
CWA-198 | added right border of animated indicator in the wallet card
This commit is contained in:
parent
3cd8af4228
commit
bd5a4a9f03
1 changed files with 14 additions and 3 deletions
|
@ -45,7 +45,7 @@ class WalletCardState extends State<WalletCard> {
|
||||||
}
|
}
|
||||||
|
|
||||||
void afterLayout(dynamic _) {
|
void afterLayout(dynamic _) {
|
||||||
screenWidth = MediaQuery.of(context).size.width;
|
screenWidth = MediaQuery.of(context).size.width - 20;
|
||||||
setState(() {
|
setState(() {
|
||||||
cardWidth = screenWidth;
|
cardWidth = screenWidth;
|
||||||
opacity = 1;
|
opacity = 1;
|
||||||
|
@ -138,8 +138,7 @@ class WalletCardState extends State<WalletCard> {
|
||||||
height: cardHeight,
|
height: cardHeight,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
AnimatedContainer(
|
Container(
|
||||||
duration: Duration(milliseconds: 0),
|
|
||||||
height: cardHeight,
|
height: cardHeight,
|
||||||
width: indicatorWidth,
|
width: indicatorWidth,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
@ -151,6 +150,18 @@ class WalletCardState extends State<WalletCard> {
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
progress != 1
|
||||||
|
? Positioned(
|
||||||
|
left: indicatorWidth,
|
||||||
|
top: 0,
|
||||||
|
bottom: 0,
|
||||||
|
child: Container(
|
||||||
|
width: 1,
|
||||||
|
height: cardHeight,
|
||||||
|
color: PaletteDark.borderCardColor,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
: Offstage(),
|
||||||
isDraw ? Positioned(
|
isDraw ? Positioned(
|
||||||
left: 20,
|
left: 20,
|
||||||
right: 20,
|
right: 20,
|
||||||
|
|
Loading…
Reference in a new issue