Skip to content

Commit

Permalink
change name dependancies
Browse files Browse the repository at this point in the history
  • Loading branch information
byackee committed Oct 23, 2024
1 parent 34db42a commit 9c713cc
Show file tree
Hide file tree
Showing 25 changed files with 86 additions and 86 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/flutter-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions lib/about.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
2 changes: 1 addition & 1 deletion lib/api/api_service.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/Statistics/other_details_donut_chart.dart
Original file line number Diff line number Diff line change
@@ -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<PieChartSectionData> buildDetailedDonutForOthers(
List<MapEntry<String, int>> otherCitiesDetails, BuildContext context) {
Expand Down
10 changes: 5 additions & 5 deletions lib/pages/Statistics/portfolio_stats.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/Statistics/rmm_stats.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
8 changes: 4 additions & 4 deletions lib/pages/Statistics/stats_selector_page.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/dashboard/dashboard_details_page.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
8 changes: 4 additions & 4 deletions lib/pages/dashboard/dashboard_page.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/maps_page.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
10 changes: 5 additions & 5 deletions lib/pages/portfolio/portfolio_display_1.dart
Original file line number Diff line number Diff line change
@@ -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<Map<String, dynamic>> portfolio;
Expand Down
10 changes: 5 additions & 5 deletions lib/pages/portfolio/portfolio_display_2.dart
Original file line number Diff line number Diff line change
@@ -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<Map<String, dynamic>> portfolio;
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/portfolio/portfolio_page.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/real_tokens_page.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/realt_page.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
8 changes: 4 additions & 4 deletions lib/pages/token_bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/updates_page.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
8 changes: 4 additions & 4 deletions lib/settings/manage_evm_addresses_page.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
6 changes: 3 additions & 3 deletions lib/settings/service_status.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
10 changes: 5 additions & 5 deletions lib/settings/settings_page.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions lib/structure/bottom_bar.dart
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
20 changes: 10 additions & 10 deletions lib/structure/drawer.dart
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
12 changes: 6 additions & 6 deletions lib/structure/home_page.dart
Original file line number Diff line number Diff line change
@@ -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});
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/utils.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 9c713cc

Please sign in to comment.