mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +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 _) {
|
||||
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<WalletCard> {
|
|||
height: cardHeight,
|
||||
child: Stack(
|
||||
children: <Widget>[
|
||||
AnimatedContainer(
|
||||
duration: Duration(milliseconds: 0),
|
||||
Container(
|
||||
height: cardHeight,
|
||||
width: indicatorWidth,
|
||||
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(
|
||||
left: 20,
|
||||
right: 20,
|
||||
|
|
Loading…
Reference in a new issue