diff --git a/android/app/build.gradle b/android/app/build.gradle index 4afa9c5..743d4d2 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -70,6 +70,10 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } + debug { + signingConfig signingConfigs.debug + debuggable true + } } } diff --git a/lib/providers/wallets_profiles.dart b/lib/providers/wallets_profiles.dart index ca0a77e..1323554 100644 --- a/lib/providers/wallets_profiles.dart +++ b/lib/providers/wallets_profiles.dart @@ -78,8 +78,8 @@ class WalletsProfilesProvider with ChangeNotifier { ); if (regExp.hasMatch(address) == true && - address.length > 47 && - address.length < 50) { + address.length > 45 && + address.length < 52) { log.d("C'est une adresse !"); this.address = address; diff --git a/lib/screens/myWallets/wallet_options.dart b/lib/screens/myWallets/wallet_options.dart index fa8f0eb..8e2f09d 100644 --- a/lib/screens/myWallets/wallet_options.dart +++ b/lib/screens/myWallets/wallet_options.dart @@ -8,7 +8,6 @@ import 'package:gecko/models/wallet_data.dart'; import 'package:gecko/providers/substrate_sdk.dart'; import 'package:gecko/providers/wallet_options.dart'; import 'package:gecko/providers/wallets_profiles.dart'; -import 'package:gecko/screens/history.dart'; import 'package:provider/provider.dart'; import 'package:flutter/services.dart'; import 'package:qr_flutter/qr_flutter.dart'; @@ -316,22 +315,22 @@ class WalletOptions extends StatelessWidget { key: const Key('displayHistory'), onTap: () { _historyProvider.nPage = 1; - Navigator.push( - context, - MaterialPageRoute(builder: (context) { - return HistoryScreen( - pubkey: walletProvider.address.text, - avatar: wallet.imageCustomPath == null - ? Image.asset( - 'assets/avatars/${wallet.imageDefaultPath}', - width: 110, - ) - : Image.asset( - wallet.imageCustomPath!, - width: 110, - )); - }), - ); + // Navigator.push( + // context, + // MaterialPageRoute(builder: (context) { + // return HistoryScreen( + // pubkey: walletProvider.address.text, + // avatar: wallet.imageCustomPath == null + // ? Image.asset( + // 'assets/avatars/${wallet.imageDefaultPath}', + // width: 110, + // ) + // : Image.asset( + // wallet.imageCustomPath!, + // width: 110, + // )); + // }), + // ); }, child: SizedBox( height: 50, @@ -342,8 +341,8 @@ class WalletOptions extends StatelessWidget { height: 45, ), const SizedBox(width: 22), - const Text('Historique des transactions', - style: TextStyle(fontSize: 20, color: Colors.black)), + Text('Historique des transactions', + style: TextStyle(fontSize: 20, color: Colors.grey[500])), ]), ), );