Skip to content
Snippets Groups Projects
Commit 9ec7a659 authored by poka's avatar poka :speech_balloon:
Browse files

can't pay if offline

parent 1a49035c
Branches
Tags
No related merge requests found
Pipeline #16029 failed
......@@ -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)
]),
));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment