can't pay if offline
This commit is contained in:
parent
1a49035cbf
commit
9ec7a6594d
|
@ -360,7 +360,10 @@ class WalletViewScreen extends StatelessWidget {
|
|||
// },
|
||||
// ),
|
||||
const Spacer(),
|
||||
Container(
|
||||
Consumer<SubstrateSdk>(builder: (context, _sub, _) {
|
||||
return Opacity(
|
||||
opacity: _sub.nodeConnected ? 1 : 0.5,
|
||||
child: Container(
|
||||
height: buttonSize,
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xff7c94b6),
|
||||
|
@ -381,19 +384,27 @@ class WalletViewScreen extends StatelessWidget {
|
|||
child: Image(
|
||||
image: AssetImage('assets/vector_white.png'),
|
||||
)),
|
||||
onTap: () {
|
||||
onTap: _sub.nodeConnected
|
||||
? () {
|
||||
paymentPopup(context, _walletViewProvider);
|
||||
}
|
||||
: null),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 9),
|
||||
Text(
|
||||
Consumer<SubstrateSdk>(builder: (context, _sub, _) {
|
||||
return Text(
|
||||
"Faire un\nvirement",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: buttonFontSize, fontWeight: FontWeight.w500),
|
||||
),
|
||||
color: _sub.nodeConnected ? Colors.black : Colors.grey[500],
|
||||
fontSize: buttonFontSize,
|
||||
fontWeight: FontWeight.w500),
|
||||
);
|
||||
}),
|
||||
SizedBox(height: isTall ? 50 : 20)
|
||||
]),
|
||||
));
|
||||
|
|
Loading…
Reference in New Issue