diff --git a/lib/main.dart b/lib/main.dart index 26f6a8b7e96ac73deb772d34233891bf9dd351cb..db919e022c2bbddfb03dd64b56b317f68d2fe5cd 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -107,8 +107,7 @@ Future<void> main() async { appRunner: () => runApp( EasyLocalization( supportedLocales: const [Locale('en'), Locale('fr')], - path: - 'assets/translations', // <-- change the path of the translation files + path: 'assets/translations', fallbackLocale: const Locale('en'), child: Gecko(indexerEndpoint), ), diff --git a/lib/providers/substrate_sdk.dart b/lib/providers/substrate_sdk.dart index 93b5cdcbcbb662c28aa2555831926b9bf4eeb361..fbe3347db32da17af8c3a86bfd673dfe541ea4c6 100644 --- a/lib/providers/substrate_sdk.dart +++ b/lib/providers/substrate_sdk.dart @@ -120,7 +120,8 @@ class SubstrateSdk with ChangeNotifier { // currencyName = await getCurencyName(); notifyListeners(); _homeProvider.changeMessage( - "wellConnectedToNode".tr(args: [getConnectedEndpoint()!.split('/')[2]]), + "wellConnectedToNode" + .tr(args: [getConnectedEndpoint()!.split('/')[2]]), 5); // snackNode(ctx, true); } else { diff --git a/lib/providers/wallet_options.dart b/lib/providers/wallet_options.dart index 5a958e73b7729ef6b1a80f61e16d7507d43d74b7..d13ef539489418fb3562008e99e6307ec845476d 100644 --- a/lib/providers/wallet_options.dart +++ b/lib/providers/wallet_options.dart @@ -164,9 +164,7 @@ class WalletOptionsProvider with ChangeNotifier { return isOwner ? InkWell( child: _showText( - 'clickHereToConfirmIdentity'.tr(), - 18, - true), + 'clickHereToConfirmIdentity'.tr(), 18, true), onTap: () async { await validateIdentity(context); }, diff --git a/lib/providers/wallets_profiles.dart b/lib/providers/wallets_profiles.dart index 1cde68c3716d989e257bb4b4666d0194a8d952dc..49b412c88627bc566d86d1eb042b97b99a96b84d 100644 --- a/lib/providers/wallets_profiles.dart +++ b/lib/providers/wallets_profiles.dart @@ -127,14 +127,13 @@ class WalletsProfilesProvider with ChangeNotifier { return _balance; } - -Widget headerProfileView( + Widget headerProfileView( BuildContext context, String _address, String? username) { const double _avatarSize = 140; WalletOptionsProvider _walletOptions = Provider.of<WalletOptionsProvider>(context, listen: false); - CesiumPlusProvider _cesiumPlusProvider = + CesiumPlusProvider _cesiumPlusProvider = Provider.of<CesiumPlusProvider>(context, listen: false); // SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false); @@ -182,13 +181,11 @@ Widget headerProfileView( ), ]), const SizedBox(height: 25), - balance(context, _address, 22), const SizedBox(height: 10), _walletOptions.idtyStatus(context, _address, isOwner: false, color: Colors.black), getCerts(context, _address, 14), - if (username == null && g1WalletsBox.get(_address)?.username != null) SizedBox( @@ -216,10 +213,9 @@ Widget headerProfileView( ]), const Spacer(), Column(children: <Widget>[ - ClipOval( - child: _cesiumPlusProvider.defaultAvatar(_avatarSize), - ), - + ClipOval( + child: _cesiumPlusProvider.defaultAvatar(_avatarSize), + ), const SizedBox(height: 25), ]), ]), @@ -228,8 +224,6 @@ Widget headerProfileView( ]); } - - void reload() { notifyListeners(); } @@ -240,6 +234,6 @@ snackCopyKey(context) { padding: const EdgeInsets.all(20), content: Text("thisAddressHasBeenCopiedToClipboard".tr(), style: const TextStyle(fontSize: 16)), - duration: const Duration(seconds: 2)); + duration: const Duration(seconds: 2)); ScaffoldMessenger.of(context).showSnackBar(snackBar); } diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 4749b07da32940967f2f0d49eaabdd935a082181..7a7ad59df861c617f02c568f85361ede151ab560 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -554,8 +554,8 @@ Widget welcomeHome(context) { }, child: Text( 'createWallet'.tr(), - style: - const TextStyle(fontSize: 24, fontWeight: FontWeight.w600), + style: const TextStyle( + fontSize: 24, fontWeight: FontWeight.w600), ), ), ), diff --git a/lib/screens/myWallets/choose_wallet.dart b/lib/screens/myWallets/choose_wallet.dart index 47d3e841fbcc2829a1488ac77cfe0813046ea487..b1f054bbe516a48390ff05585335a0197b11e706 100644 --- a/lib/screens/myWallets/choose_wallet.dart +++ b/lib/screens/myWallets/choose_wallet.dart @@ -61,8 +61,8 @@ class ChooseWalletScreen extends StatelessWidget { }, child: Text( 'chooseThisWallet'.tr(), - style: - const TextStyle(fontSize: 24, fontWeight: FontWeight.w600), + style: const TextStyle( + fontSize: 24, fontWeight: FontWeight.w600), ), ), ), diff --git a/lib/screens/myWallets/custom_derivations.dart b/lib/screens/myWallets/custom_derivations.dart index bacd1da507c4a24c2944ec8667ab5db1d5742e3d..a4d16239e0c18dc3ebe2681acfaf61f8ab277c19 100644 --- a/lib/screens/myWallets/custom_derivations.dart +++ b/lib/screens/myWallets/custom_derivations.dart @@ -125,8 +125,8 @@ class _CustomDerivationState extends State<CustomDerivation> { } if (_pin != null || _myWalletProvider.pinCode != '') { - String _newDerivationName = - 'wallet'.tr() + ' ${_myWalletProvider.listWallets.last.number! + 2}'; + String _newDerivationName = 'wallet'.tr() + + ' ${_myWalletProvider.listWallets.last.number! + 2}'; if (dropdownValue == 'root') { await _myWalletProvider.generateRootWallet( context, 'Portefeuille racine'); @@ -149,7 +149,8 @@ class _CustomDerivationState extends State<CustomDerivation> { }, child: Text( 'validate'.tr(), - style: const TextStyle(fontSize: 24, fontWeight: FontWeight.w600), + style: const TextStyle( + fontSize: 24, fontWeight: FontWeight.w600), ), ), ), diff --git a/lib/screens/myWallets/wallet_options.dart b/lib/screens/myWallets/wallet_options.dart index 69cfe1df3ff36d422d694d28a8a065455a8f3b75..75509f27842d87ce76d43a6fb14be816954af6ea 100644 --- a/lib/screens/myWallets/wallet_options.dart +++ b/lib/screens/myWallets/wallet_options.dart @@ -353,7 +353,8 @@ class WalletOptions extends StatelessWidget { ), const SizedBox(width: 22), Text("displayActivity".tr(), - style: const TextStyle(fontSize: 20, fontWeight: FontWeight.w500)), + style: + const TextStyle(fontSize: 20, fontWeight: FontWeight.w500)), ]), ), ); diff --git a/lib/screens/onBoarding/3.dart b/lib/screens/onBoarding/3.dart index 48cf981cb3f76f6273dd0473baf665f0471de7e9..663f1ee43efc25f04d3d44aa452ddb59a9effb24 100644 --- a/lib/screens/onBoarding/3.dart +++ b/lib/screens/onBoarding/3.dart @@ -32,9 +32,7 @@ class OnboardingStepThree extends StatelessWidget { child: common.infoIntro( context, <TextSpan>[ - TextSpan( - text: - 'warningForgotPassword'.tr()), + TextSpan(text: 'warningForgotPassword'.tr()), ], 'forgot_password.png'.tr(), '>',