Skip to content
Snippets Groups Projects
Commit a1e98bcc authored by vjrj's avatar vjrj
Browse files

Allow to get balance of other pubkeys

parent e1676783
No related branches found
No related tags found
No related merge requests found
...@@ -194,7 +194,7 @@ bool weHaveBalance(BuildContext context, double amount) { ...@@ -194,7 +194,7 @@ bool weHaveBalance(BuildContext context, double amount) {
} }
double getBalance(BuildContext context) => double getBalance(BuildContext context) =>
context.read<MultiWalletTransactionCubit>().balance; context.read<MultiWalletTransactionCubit>().balance();
Future<bool?> _confirmSend( Future<bool?> _confirmSend(
BuildContext context, BuildContext context,
......
...@@ -39,7 +39,7 @@ class _FirstScreenState extends State<FirstScreen> { ...@@ -39,7 +39,7 @@ class _FirstScreenState extends State<FirstScreen> {
context, context.read<AppCubit>().wasTutorialShown('first_screen')); context, context.read<AppCubit>().wasTutorialShown('first_screen'));
super.initState(); super.initState();
if (context.read<BottomNavCubit>().state == 0 && if (context.read<BottomNavCubit>().state == 0 &&
context.read<MultiWalletTransactionCubit>().balance == 0) { context.read<MultiWalletTransactionCubit>().balance() == 0) {
Future<void>.delayed(Duration.zero, () => tutorial.showTutorial()); Future<void>.delayed(Duration.zero, () => tutorial.showTutorial());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment