diff --git a/lib/main.dart b/lib/main.dart index 05d9d3a..a38fdb8 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -53,11 +53,11 @@ Future main() async { // Get a valid GVA endpoint endPointGVA = await _homeProvider.getValidEndpoint(); - if (endPointGVA == 'HS') { - _homeProvider.playSound('faché', 0.8); - } else { - _homeProvider.playSound('start', 0.2); - } + // if (endPointGVA == 'HS') { + // _homeProvider.playSound('faché', 0.8); + // } else { + // _homeProvider.playSound('start', 0.2); + // } if (kReleaseMode && enableSentry) { // CatcherOptions debugOptions = CatcherOptions(DialogReportMode(), [ diff --git a/lib/models/home.dart b/lib/models/home.dart index 7c35cdc..a39fec1 100644 --- a/lib/models/home.dart +++ b/lib/models/home.dart @@ -1,8 +1,8 @@ import 'dart:convert'; import 'dart:io'; import 'dart:math'; -import 'package:audioplayers/audio_cache.dart'; -import 'package:audioplayers/audioplayers.dart'; +// import 'package:audioplayers/audio_cache.dart'; +// import 'package:audioplayers/audioplayers.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -23,7 +23,7 @@ class HomeProvider with ChangeNotifier { Text('Explorateur', style: TextStyle(color: Colors.grey[850])); List currentTab = [HistoryScreen(), WalletsHome()]; - AudioCache player = AudioCache(prefix: 'sounds/'); + // AudioCache player = AudioCache(prefix: 'sounds/'); get currentIndex => _currentIndex; @@ -132,10 +132,10 @@ class HomeProvider with ChangeNotifier { notifyListeners(); } - void playSound(String customSound, double volume) async { - await player.play('$customSound.wav', - volume: volume, mode: PlayerMode.LOW_LATENCY, stayAwake: false); - } + // void playSound(String customSound, double volume) async { + // await player.play('$customSound.wav', + // volume: volume, mode: PlayerMode.LOW_LATENCY, stayAwake: false); + // } void handleSearchEnd() { searchIcon = Icon( diff --git a/lib/models/walletOptions.dart b/lib/models/walletOptions.dart index d8aed5f..993f202 100644 --- a/lib/models/walletOptions.dart +++ b/lib/models/walletOptions.dart @@ -98,7 +98,7 @@ class WalletOptionsProvider with ChangeNotifier { throw 'Bad pubkey'; } } catch (e) { - _homeProvider.playSound('non', 0.6); + // _homeProvider.playSound('non', 0.6); log.e('ERROR READING FILE: $e'); this.pubkey.clear(); return 'bad'; diff --git a/pubspec.lock b/pubspec.lock index 45f9583..ed3d8ed 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -35,14 +35,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" - audioplayers: - dependency: "direct main" - description: - name: audioplayers - url: "https://pub.dartlang.org" - source: hosted - version: "0.18.3" + version: "2.6.1" barcode: dependency: transitive description: @@ -140,7 +133,7 @@ packages: name: crypto url: "https://pub.dartlang.org" source: hosted - version: "3.0.0" + version: "3.0.1" dubp: dependency: "direct main" description: @@ -926,7 +919,7 @@ packages: name: vm_service url: "https://pub.dartlang.org" source: hosted - version: "6.1.0+1" + version: "6.2.0" watcher: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index ab85da5..11fdb1b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -46,7 +46,7 @@ dependencies: responsive_framework: ^0.0.14 responsive_builder: ^0.3.0 jdenticon_dart: ^2.0.0 - audioplayers: ^0.18.1 + # audioplayers: ^0.18.1 flutter_driver: sdk: flutter test: ^1.16.8 diff --git a/web/favicon.png b/web/favicon.png new file mode 100644 index 0000000..8aaa46a Binary files /dev/null and b/web/favicon.png differ diff --git a/web/icons/Icon-192.png b/web/icons/Icon-192.png new file mode 100644 index 0000000..b749bfe Binary files /dev/null and b/web/icons/Icon-192.png differ diff --git a/web/icons/Icon-512.png b/web/icons/Icon-512.png new file mode 100644 index 0000000..88cfd48 Binary files /dev/null and b/web/icons/Icon-512.png differ diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..803aca7 --- /dev/null +++ b/web/index.html @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + gecko + + + + + + + diff --git a/web/manifest.json b/web/manifest.json new file mode 100644 index 0000000..b57dd44 --- /dev/null +++ b/web/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "gecko", + "short_name": "gecko", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +}