better logs prints

This commit is contained in:
poka 2021-04-02 13:11:45 +02:00
parent b6703f48e6
commit c5e902ba88
2 changed files with 3 additions and 5 deletions

View File

@ -54,22 +54,21 @@ class MyWalletsProvider with ChangeNotifier {
log.i('No wallets detected');
return false;
} else {
log.i('Some wallets have been detected.');
return true;
}
}
List readAllWallets(int _chest) {
log.d(walletsDirectory.path);
// log.d(walletsDirectory.path);
listWallets = [];
File _walletConfig = File('${walletsDirectory.path}/$_chest/list.conf');
_walletConfig.readAsLinesSync().forEach((element) {
log.i(element);
listWallets.add(WalletData(element));
});
log.i(listWallets.toString());
return listWallets;
}

View File

@ -22,7 +22,6 @@ class WalletOptions extends StatelessWidget {
@override
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
log.d("Build walletOptions");
WalletOptionsProvider _walletOptions =
Provider.of<WalletOptionsProvider>(context);
MyWalletsProvider _myWalletProvider =
@ -55,7 +54,7 @@ class WalletOptions extends StatelessWidget {
int currentChest = _myWalletProvider.getCurrentChest();
log.d("$currentChest:${wallet.number}");
log.d("Wallet options: $currentChest:${wallet.number}");
return WillPopScope(
onWillPop: () {