diff --git a/.metadata b/.metadata index f0274b3eb94431241e5ead90759ad2794d64771d..245a8e8c21fdfe2322dcaa09a6c7cdcfd33420a6 100644 --- a/.metadata +++ b/.metadata @@ -1,10 +1,30 @@ # This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # -# This file should be version controlled and should not be manually edited. +# This file should be version controlled. version: - revision: 1aafb3a8b9b0c36241c5f5b34ee914770f015818 + revision: 85684f9300908116a78138ea4c6036c35c9a1236 channel: stable project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 85684f9300908116a78138ea4c6036c35c9a1236 + base_revision: 85684f9300908116a78138ea4c6036c35c9a1236 + - platform: android + create_revision: 85684f9300908116a78138ea4c6036c35c9a1236 + base_revision: 85684f9300908116a78138ea4c6036c35c9a1236 + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/android/app/src/main/kotlin/gecko/axiomteam/gecko/MainActivity.kt b/android/app/src/main/kotlin/gecko/axiomteam/gecko/MainActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..0a5e37bf34196d3cea559d2687f401744c0a9cad --- /dev/null +++ b/android/app/src/main/kotlin/gecko/axiomteam/gecko/MainActivity.kt @@ -0,0 +1,6 @@ +package gecko.axiomteam.gecko + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..f74085f3f6a2b995f8ad1f9ff7b2c46dc118a9e0 --- /dev/null +++ b/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Modify this file to customize your launch splash screen --> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:drawable="?android:colorBackground" /> + + <!-- You can insert your own image assets here --> + <!-- <item> + <bitmap + android:gravity="center" + android:src="@mipmap/launch_image" /> + </item> --> +</layer-list> diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000000000000000000000000000000000000..06952be745f9fa6fa75196e830d9578eb2ee631d --- /dev/null +++ b/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on --> + <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar"> + <!-- Show a splash screen on the activity. Automatically removed when + the Flutter engine draws its first frame --> + <item name="android:windowBackground">@drawable/launch_background</item> + </style> + <!-- Theme applied to the Android Window as soon as the process has started. + This theme determines the color of the Android Window while your + Flutter UI initializes, as well as behind your Flutter UI while its + running. + + This Theme is only used starting with V2 of Flutter's Android embedding. --> + <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar"> + <item name="android:windowBackground">?android:colorBackground</item> + </style> +</resources> diff --git a/assets/translations/en.json b/assets/translations/en.json index 478705a5a4befc783bc53e1d70531fb63f1fd933..2d1f4f1fb514adcb54c8b0f41a6f21c01b95c988 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -109,7 +109,7 @@ "accountActivity": "Account activity", "noNetworkNoHistory": "Network state does not allow\nto display account history", "noDataToDisplay": "No data to be displayed.", - "noTranscationToDisplay": "No transaction to display", + "noTransactionToDisplay": "No transaction to display", "month1": "January", "month2": "February", "month3": "March", diff --git a/assets/translations/es.json b/assets/translations/es.json index 340944d239e76b6987721cb8f46afe2ba0a9c7e4..a7299ecf20e4f934fc99a6906c5cc76267652058 100644 --- a/assets/translations/es.json +++ b/assets/translations/es.json @@ -109,7 +109,7 @@ "accountActivity": "Account activity", "noNetworkNoHistory": "Network state does not allow\nto display account history", "noDataToDisplay": "No data to be displayed.", - "noTranscationToDisplay": "No transaction to display", + "noTransactionToDisplay": "No transaction to display", "month1": "January", "month2": "February", "month3": "March", diff --git a/assets/translations/fr.json b/assets/translations/fr.json index 98b185bf0ccd97e28c7b0f1a0e28ce74ca93b879..963e071259ae0d490838941bb66d5da9eb237195 100644 --- a/assets/translations/fr.json +++ b/assets/translations/fr.json @@ -110,7 +110,7 @@ "accountActivity": "Activité du compte", "noNetworkNoHistory": "L'état du réseau ne permet pas\nd'afficher l'historique du compte", "noDataToDisplay": "Aucune donnée à afficher.", - "noTranscationToDisplay": "Aucune transaction à afficher", + "noTransactionToDisplay": "Aucune transaction à afficher", "month1": "Janvier", "month2": "Février", "month3": "Mars", diff --git a/lib/main.dart b/lib/main.dart index 9c20360f41cfe51f534080d42665df80b8e8c65b..210b257320958549fdabad9ee5c6c392251d0336 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -106,7 +106,7 @@ Future<void> main() async { }, appRunner: () => runApp( EasyLocalization( - supportedLocales: const [Locale('en'), Locale('fr')], + supportedLocales: const [Locale('en'), Locale('fr'), Locale('es')], path: 'assets/translations', fallbackLocale: const Locale('en'), child: Gecko(indexerEndpoint), diff --git a/lib/providers/generate_wallets.dart b/lib/providers/generate_wallets.dart index 5fec56dc0645594aa6e30b57f0ce1eea0ddc46c4..fa4b8696f4b0e095d88044656a3bf972992402b7 100644 --- a/lib/providers/generate_wallets.dart +++ b/lib/providers/generate_wallets.dart @@ -369,7 +369,6 @@ class GenerateWalletsProvider with ChangeNotifier { Future<bool> scanDerivations(BuildContext context, {int numberScan = 20}) async { SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false); - final ss58 = _sub.ss58; final currentChestNumber = configBox.get('currentChest'); bool isAlive = false; scanedWalletNumber = 0; diff --git a/lib/providers/substrate_sdk.dart b/lib/providers/substrate_sdk.dart index dcd6d55c96a01bf3d5d4aa454525b105a1ffdc08..5de4a376b8d54bad36ba99a2f5c0f8481bde86d4 100644 --- a/lib/providers/substrate_sdk.dart +++ b/lib/providers/substrate_sdk.dart @@ -19,8 +19,6 @@ import 'package:truncate/truncate.dart'; // import 'package:web_socket_channel/io.dart'; class SubstrateSdk with ChangeNotifier { - final int ss58 = 42; - final WalletSDK sdk = WalletSDK(); final Keyring keyring = Keyring(); String generatedMnemonic = ''; @@ -262,6 +260,7 @@ class SubstrateSdk with ChangeNotifier { Future<double> getBalance(String address, {bool isUd = false}) async { double balance = 0.0; + // log.d('nodeConnected: ' + nodeConnected.toString()); if (nodeConnected) { final brutBalance = await sdk.api.account.queryBalance(address); diff --git a/lib/screens/activity.dart b/lib/screens/activity.dart index ff682f9803ad06241601e1dfadb3aba3a704a454..f3c76ec6fa55554c3b4114bff01a00eb756aa7e5 100644 --- a/lib/screens/activity.dart +++ b/lib/screens/activity.dart @@ -111,7 +111,8 @@ class ActivityScreen extends StatelessWidget with ChangeNotifier { style: const TextStyle(fontSize: 18), ) ]); - } else if (result.data == null) { + } else if (result + .data?['transaction_connection']?['edges'].isEmpty) { return Column(children: <Widget>[ const SizedBox(height: 50), Text(