diff --git a/.github/workflows/flutter-windows.yml b/.github/workflows/flutter-windows.yml index 34d4ef9..cc69bc1 100644 --- a/.github/workflows/flutter-windows.yml +++ b/.github/workflows/flutter-windows.yml @@ -26,14 +26,14 @@ jobs: with: flutter-version: '3.24.3' + - name: Install dependencies + run: flutter pub get + - name: Enable Windows desktop support run: | flutter config --enable-windows-desktop flutter create . - - name: Install dependencies - run: flutter pub get - - name: Build Windows app run: flutter build windows diff --git a/lib/about.dart b/lib/about.dart index c7460e1..a5fca3c 100644 --- a/lib/about.dart +++ b/lib/about.dart @@ -1,10 +1,10 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; // Importer pour le copier dans le presse-papiers import 'dart:io'; // Importer pour détecter la plateforme import 'package:provider/provider.dart'; // Pour accéder à AppState -import 'package:real_token/generated/l10n.dart'; // Importer pour les traductions -import 'package:real_token/app_state.dart'; // Importer pour accéder à l'offset de texte +import 'package:realtokens_apps/generated/l10n.dart'; // Importer pour les traductions +import 'package:realtokens_apps/app_state.dart'; // Importer pour accéder à l'offset de texte class AboutPage extends StatelessWidget { const AboutPage({super.key}); diff --git a/lib/api/api_service.dart b/lib/api/api_service.dart index b57c8f7..834a22a 100644 --- a/lib/api/api_service.dart +++ b/lib/api/api_service.dart @@ -1,6 +1,6 @@ import 'dart:async'; import 'dart:convert'; -import 'package:real_token/utils/parameters.dart'; +import 'package:realtokens_apps/utils/parameters.dart'; import 'package:http/http.dart' as http; import 'package:hive/hive.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/lib/main.dart b/lib/main.dart index bf95c55..1a21243 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,4 +1,4 @@ -import 'package:real_token/structure/home_page.dart'; +import 'package:realtokens_apps/structure/home_page.dart'; import 'package:flutter/material.dart'; import 'package:hive_flutter/hive_flutter.dart'; import 'package:provider/provider.dart'; diff --git a/lib/pages/Statistics/other_details_donut_chart.dart b/lib/pages/Statistics/other_details_donut_chart.dart index 95228b3..9bbd41f 100644 --- a/lib/pages/Statistics/other_details_donut_chart.dart +++ b/lib/pages/Statistics/other_details_donut_chart.dart @@ -1,8 +1,8 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:fl_chart/fl_chart.dart'; import 'package:provider/provider.dart'; -import 'package:real_token/app_state.dart'; // Import AppState +import 'package:realtokens_apps/app_state.dart'; // Import AppState List buildDetailedDonutForOthers( List> otherCitiesDetails, BuildContext context) { diff --git a/lib/pages/Statistics/portfolio_stats.dart b/lib/pages/Statistics/portfolio_stats.dart index ac530c5..5e6ee9b 100644 --- a/lib/pages/Statistics/portfolio_stats.dart +++ b/lib/pages/Statistics/portfolio_stats.dart @@ -1,13 +1,13 @@ -import 'package:real_token/utils/parameters.dart'; -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/parameters.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:fl_chart/fl_chart.dart'; import 'package:provider/provider.dart'; import 'package:intl/intl.dart'; import 'package:flutter/scheduler.dart'; -import 'package:real_token/api/data_manager.dart'; -import 'package:real_token/generated/l10n.dart'; // Import pour les traductions -import 'package:real_token/app_state.dart'; // Import AppState +import 'package:realtokens_apps/api/data_manager.dart'; +import 'package:realtokens_apps/generated/l10n.dart'; // Import pour les traductions +import 'package:realtokens_apps/app_state.dart'; // Import AppState import 'package:logger/logger.dart'; class PortfolioStats extends StatefulWidget { diff --git a/lib/pages/Statistics/rmm_stats.dart b/lib/pages/Statistics/rmm_stats.dart index b7cf77b..0a60a25 100644 --- a/lib/pages/Statistics/rmm_stats.dart +++ b/lib/pages/Statistics/rmm_stats.dart @@ -1,8 +1,8 @@ -import 'package:real_token/generated/l10n.dart'; +import 'package:realtokens_apps/generated/l10n.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:fl_chart/fl_chart.dart'; -import 'package:real_token/api/data_manager.dart'; +import 'package:realtokens_apps/api/data_manager.dart'; class RmmStats extends StatefulWidget { const RmmStats({super.key}); diff --git a/lib/pages/Statistics/stats_selector_page.dart b/lib/pages/Statistics/stats_selector_page.dart index a7d23f3..1019baf 100644 --- a/lib/pages/Statistics/stats_selector_page.dart +++ b/lib/pages/Statistics/stats_selector_page.dart @@ -1,9 +1,9 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; -import 'package:real_token/pages/Statistics/RMM_stats.dart'; -import 'package:real_token/pages/Statistics/portfolio_stats.dart'; // Assurez-vous que ces pages existent dans votre projet +import 'package:realtokens_apps/pages/Statistics/RMM_stats.dart'; +import 'package:realtokens_apps/pages/Statistics/portfolio_stats.dart'; // Assurez-vous que ces pages existent dans votre projet import 'package:provider/provider.dart'; -import 'package:real_token/app_state.dart'; +import 'package:realtokens_apps/app_state.dart'; class StatsSelectorPage extends StatefulWidget { const StatsSelectorPage({super.key}); diff --git a/lib/pages/dashboard/dashboard_details_page.dart b/lib/pages/dashboard/dashboard_details_page.dart index ccbbc51..c4c19d8 100644 --- a/lib/pages/dashboard/dashboard_details_page.dart +++ b/lib/pages/dashboard/dashboard_details_page.dart @@ -1,7 +1,7 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:real_token/api/data_manager.dart'; +import 'package:realtokens_apps/api/data_manager.dart'; class DashboardRentsDetailsPage extends StatelessWidget { const DashboardRentsDetailsPage({super.key}); diff --git a/lib/pages/dashboard/dashboard_page.dart b/lib/pages/dashboard/dashboard_page.dart index 793b607..0b5555c 100644 --- a/lib/pages/dashboard/dashboard_page.dart +++ b/lib/pages/dashboard/dashboard_page.dart @@ -1,14 +1,14 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:fl_chart/fl_chart.dart'; import 'package:intl/intl.dart'; import 'package:shared_preferences/shared_preferences.dart'; // Import pour SharedPreferences -import 'package:real_token/api/data_manager.dart'; -import 'package:real_token/generated/l10n.dart'; +import 'package:realtokens_apps/api/data_manager.dart'; +import 'package:realtokens_apps/generated/l10n.dart'; import '/settings/manage_evm_addresses_page.dart'; // Import de la page pour gérer les adresses EVM import 'dashboard_details_page.dart'; -import 'package:real_token/app_state.dart'; // Import AppState +import 'package:realtokens_apps/app_state.dart'; // Import AppState class DashboardPage extends StatefulWidget { diff --git a/lib/pages/maps_page.dart b/lib/pages/maps_page.dart index 9222c6f..2117700 100644 --- a/lib/pages/maps_page.dart +++ b/lib/pages/maps_page.dart @@ -1,11 +1,11 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:flutter_map/flutter_map.dart'; import 'package:flutter_map_marker_cluster/flutter_map_marker_cluster.dart'; import 'package:latlong2/latlong.dart'; import 'package:provider/provider.dart'; import 'package:shared_preferences/shared_preferences.dart'; -import 'package:real_token/api/data_manager.dart'; +import 'package:realtokens_apps/api/data_manager.dart'; class MapsPage extends StatefulWidget { const MapsPage({super.key}); diff --git a/lib/pages/portfolio/portfolio_display_1.dart b/lib/pages/portfolio/portfolio_display_1.dart index d1abeeb..8165e5d 100644 --- a/lib/pages/portfolio/portfolio_display_1.dart +++ b/lib/pages/portfolio/portfolio_display_1.dart @@ -1,11 +1,11 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:cached_network_image/cached_network_image.dart'; -import 'package:real_token/pages/token_bottom_sheet.dart'; // Import de la bibliothèque url_launcher +import 'package:realtokens_apps/pages/token_bottom_sheet.dart'; // Import de la bibliothèque url_launcher import 'package:provider/provider.dart'; // Pour accéder à DataManager -import 'package:real_token/generated/l10n.dart'; // Import des traductions -import 'package:real_token/settings/manage_evm_addresses_page.dart'; // Import de la page de gestion des adresses EVM -import 'package:real_token/app_state.dart'; // Import AppState +import 'package:realtokens_apps/generated/l10n.dart'; // Import des traductions +import 'package:realtokens_apps/settings/manage_evm_addresses_page.dart'; // Import de la page de gestion des adresses EVM +import 'package:realtokens_apps/app_state.dart'; // Import AppState class PortfolioDisplay1 extends StatelessWidget { final List> portfolio; diff --git a/lib/pages/portfolio/portfolio_display_2.dart b/lib/pages/portfolio/portfolio_display_2.dart index 12b9375..543c77c 100644 --- a/lib/pages/portfolio/portfolio_display_2.dart +++ b/lib/pages/portfolio/portfolio_display_2.dart @@ -1,11 +1,11 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:cached_network_image/cached_network_image.dart'; -import 'package:real_token/pages/token_bottom_sheet.dart'; // Import de la bibliothèque url_launcher +import 'package:realtokens_apps/pages/token_bottom_sheet.dart'; // Import de la bibliothèque url_launcher import 'package:provider/provider.dart'; // Pour accéder à DataManager -import 'package:real_token/generated/l10n.dart'; // Import des traductions -import 'package:real_token/settings/manage_evm_addresses_page.dart'; // Import de la page de gestion des adresses EVM -import 'package:real_token/app_state.dart'; // Import de AppState +import 'package:realtokens_apps/generated/l10n.dart'; // Import des traductions +import 'package:realtokens_apps/settings/manage_evm_addresses_page.dart'; // Import de la page de gestion des adresses EVM +import 'package:realtokens_apps/app_state.dart'; // Import de AppState class PortfolioDisplay2 extends StatefulWidget { final List> portfolio; diff --git a/lib/pages/portfolio/portfolio_page.dart b/lib/pages/portfolio/portfolio_page.dart index c9371ee..e89d521 100644 --- a/lib/pages/portfolio/portfolio_page.dart +++ b/lib/pages/portfolio/portfolio_page.dart @@ -1,11 +1,11 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:shared_preferences/shared_preferences.dart'; -import 'package:real_token/api/data_manager.dart'; +import 'package:realtokens_apps/api/data_manager.dart'; import 'portfolio_display_1.dart'; import 'portfolio_display_2.dart'; -import 'package:real_token/generated/l10n.dart'; // Import pour les traductions +import 'package:realtokens_apps/generated/l10n.dart'; // Import pour les traductions class PortfolioPage extends StatefulWidget { const PortfolioPage({super.key}); diff --git a/lib/pages/real_tokens_page.dart b/lib/pages/real_tokens_page.dart index 5d9d20a..8d477a3 100644 --- a/lib/pages/real_tokens_page.dart +++ b/lib/pages/real_tokens_page.dart @@ -1,8 +1,8 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; // Importer provider import 'package:cached_network_image/cached_network_image.dart'; -import 'package:real_token/api/data_manager.dart'; +import 'package:realtokens_apps/api/data_manager.dart'; import 'token_bottom_sheet.dart'; // Import du modal bottom sheet class RealTokensPage extends StatefulWidget { diff --git a/lib/pages/realt_page.dart b/lib/pages/realt_page.dart index b7b0ac2..b735e15 100644 --- a/lib/pages/realt_page.dart +++ b/lib/pages/realt_page.dart @@ -1,6 +1,6 @@ -import 'package:real_token/api/data_manager.dart'; -import 'package:real_token/generated/l10n.dart'; -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/api/data_manager.dart'; +import 'package:realtokens_apps/generated/l10n.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; diff --git a/lib/pages/token_bottom_sheet.dart b/lib/pages/token_bottom_sheet.dart index e04e124..bf361d4 100644 --- a/lib/pages/token_bottom_sheet.dart +++ b/lib/pages/token_bottom_sheet.dart @@ -6,12 +6,12 @@ import 'package:flutter_map/flutter_map.dart'; import 'package:latlong2/latlong.dart'; // Import pour les coordonnées géographiques import 'package:fl_chart/fl_chart.dart'; import 'package:provider/provider.dart'; // Pour accéder à DataManager -import 'package:real_token/api/data_manager.dart'; // Import de DataManager -import 'package:real_token/generated/l10n.dart'; // Import pour les traductions +import 'package:realtokens_apps/api/data_manager.dart'; // Import de DataManager +import 'package:realtokens_apps/generated/l10n.dart'; // Import pour les traductions import 'package:carousel_slider/carousel_slider.dart'; import 'portfolio/FullScreenCarousel.dart'; -import 'package:real_token/utils/utils.dart'; -import 'package:real_token/app_state.dart'; +import 'package:realtokens_apps/utils/utils.dart'; +import 'package:realtokens_apps/app_state.dart'; // Fonction modifiée pour formater la monnaie avec le taux de conversion et le symbole String formatCurrency(BuildContext context, double value) { diff --git a/lib/pages/updates_page.dart b/lib/pages/updates_page.dart index bc7aa53..44bee10 100644 --- a/lib/pages/updates_page.dart +++ b/lib/pages/updates_page.dart @@ -1,8 +1,8 @@ -import 'package:real_token/app_state.dart'; +import 'package:realtokens_apps/app_state.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:real_token/api/data_manager.dart'; // Assurez-vous d'importer votre DataManager -import 'package:real_token/generated/l10n.dart'; // Import pour les traductions +import 'package:realtokens_apps/api/data_manager.dart'; // Assurez-vous d'importer votre DataManager +import 'package:realtokens_apps/generated/l10n.dart'; // Import pour les traductions class UpdatesPage extends StatefulWidget { const UpdatesPage({super.key}); diff --git a/lib/settings/manage_evm_addresses_page.dart b/lib/settings/manage_evm_addresses_page.dart index cecf759..2c606f6 100644 --- a/lib/settings/manage_evm_addresses_page.dart +++ b/lib/settings/manage_evm_addresses_page.dart @@ -1,12 +1,12 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:provider/provider.dart'; import 'package:flutter/material.dart'; import 'package:mobile_scanner/mobile_scanner.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:flutter/services.dart'; // Pour copier dans le presse-papiers -import 'package:real_token/api/data_manager.dart'; -import 'package:real_token/api/api_service.dart'; -import 'package:real_token/app_state.dart'; // Import pour accéder à AppState +import 'package:realtokens_apps/api/data_manager.dart'; +import 'package:realtokens_apps/api/api_service.dart'; +import 'package:realtokens_apps/app_state.dart'; // Import pour accéder à AppState class ManageEvmAddressesPage extends StatefulWidget { const ManageEvmAddressesPage({super.key}); diff --git a/lib/settings/service_status.dart b/lib/settings/service_status.dart index ab6fdfc..e7ea4c7 100644 --- a/lib/settings/service_status.dart +++ b/lib/settings/service_status.dart @@ -1,9 +1,9 @@ -import 'package:real_token/generated/l10n.dart'; -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/generated/l10n.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:hive/hive.dart'; import 'package:provider/provider.dart'; -import 'package:real_token/app_state.dart'; // Import AppState +import 'package:realtokens_apps/app_state.dart'; // Import AppState class ServiceStatusPage extends StatelessWidget { const ServiceStatusPage({super.key}); diff --git a/lib/settings/settings_page.dart b/lib/settings/settings_page.dart index a12fdcd..9bdb402 100644 --- a/lib/settings/settings_page.dart +++ b/lib/settings/settings_page.dart @@ -1,13 +1,13 @@ import 'dart:convert'; import 'dart:io'; // Pour détecter la plateforme (Android/iOS) -import 'package:real_token/app_state.dart'; -import 'package:real_token/utils/parameters.dart'; -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/app_state.dart'; +import 'package:realtokens_apps/utils/parameters.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:path_provider/path_provider.dart'; import 'package:shared_preferences/shared_preferences.dart'; -import 'package:real_token/api/data_manager.dart'; -import 'package:real_token/generated/l10n.dart'; // Importer le fichier généré pour les traductions +import 'package:realtokens_apps/api/data_manager.dart'; +import 'package:realtokens_apps/generated/l10n.dart'; // Importer le fichier généré pour les traductions import 'package:hive/hive.dart'; // Import pour Hive import 'package:provider/provider.dart'; import '/api/api_service.dart'; diff --git a/lib/structure/bottom_bar.dart b/lib/structure/bottom_bar.dart index 6c799cf..f1c827f 100644 --- a/lib/structure/bottom_bar.dart +++ b/lib/structure/bottom_bar.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:real_token/generated/l10n.dart'; // Import pour les traductions -import 'package:real_token/app_state.dart'; // Importer AppState +import 'package:realtokens_apps/generated/l10n.dart'; // Import pour les traductions +import 'package:realtokens_apps/app_state.dart'; // Importer AppState class CustomBottomNavigationBar extends StatelessWidget { final int selectedIndex; diff --git a/lib/structure/drawer.dart b/lib/structure/drawer.dart index 12a9bbd..d721b2f 100644 --- a/lib/structure/drawer.dart +++ b/lib/structure/drawer.dart @@ -1,16 +1,16 @@ -import 'package:real_token/settings/service_status.dart'; -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/settings/service_status.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:real_token/settings/settings_page.dart'; // Importer la page des paramètres -import 'package:real_token/pages/real_tokens_page.dart'; // Importer la page des RealTokens -import 'package:real_token/about.dart'; // Importer la page About -import 'package:real_token/pages/updates_page.dart'; // Importer la page des mises à jour -import 'package:real_token/pages/realt_page.dart'; // Importer la page TokenSummaryPage +import 'package:realtokens_apps/settings/settings_page.dart'; // Importer la page des paramètres +import 'package:realtokens_apps/pages/real_tokens_page.dart'; // Importer la page des RealTokens +import 'package:realtokens_apps/about.dart'; // Importer la page About +import 'package:realtokens_apps/pages/updates_page.dart'; // Importer la page des mises à jour +import 'package:realtokens_apps/pages/realt_page.dart'; // Importer la page TokenSummaryPage // Pour détecter la plateforme -import 'package:real_token/generated/l10n.dart'; // Importer les traductions -import 'package:real_token/settings/manage_evm_addresses_page.dart'; // Ajouter cet import si ce n'est pas déjà le cas -import 'package:real_token/app_state.dart'; // Importer AppState +import 'package:realtokens_apps/generated/l10n.dart'; // Importer les traductions +import 'package:realtokens_apps/settings/manage_evm_addresses_page.dart'; // Ajouter cet import si ce n'est pas déjà le cas +import 'package:realtokens_apps/app_state.dart'; // Importer AppState class CustomDrawer extends StatelessWidget { final Function(bool) onThemeChanged; diff --git a/lib/structure/home_page.dart b/lib/structure/home_page.dart index 6039a39..65df2c8 100644 --- a/lib/structure/home_page.dart +++ b/lib/structure/home_page.dart @@ -1,14 +1,14 @@ -import 'package:real_token/utils/utils.dart'; +import 'package:realtokens_apps/utils/utils.dart'; import 'package:flutter/material.dart'; import 'bottom_bar.dart'; import 'drawer.dart'; -import 'package:real_token/pages/dashboard/dashboard_page.dart'; -import 'package:real_token/pages/portfolio/portfolio_page.dart'; -import 'package:real_token/pages/Statistics/stats_selector_page.dart'; -import 'package:real_token/pages/maps_page.dart'; +import 'package:realtokens_apps/pages/dashboard/dashboard_page.dart'; +import 'package:realtokens_apps/pages/portfolio/portfolio_page.dart'; +import 'package:realtokens_apps/pages/Statistics/stats_selector_page.dart'; +import 'package:realtokens_apps/pages/maps_page.dart'; import 'dart:ui'; // Import for blur effect import 'package:provider/provider.dart'; -import 'package:real_token/app_state.dart'; // Import the global AppState +import 'package:realtokens_apps/app_state.dart'; // Import the global AppState class MyHomePage extends StatefulWidget { const MyHomePage({super.key}); diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index 4a33fdc..61d0f8a 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -1,6 +1,6 @@ -import 'package:real_token/api/data_manager.dart'; -import 'package:real_token/generated/l10n.dart'; +import 'package:realtokens_apps/api/data_manager.dart'; +import 'package:realtokens_apps/generated/l10n.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:intl/intl.dart';