diff --git a/lib/main.dart b/lib/main.dart index b187bfb..39ed3d7 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -79,6 +79,8 @@ Future main() async { // _homeProvider.playSound('start', 0.2); // } + HttpOverrides.global = MyHttpOverrides(); + if (kReleaseMode && enableSentry) { // CatcherOptions debugOptions = CatcherOptions(DialogReportMode(), [ // SentryHandler(SentryClient(SentryOptions( @@ -110,8 +112,6 @@ Future main() async { } else { print('Debug mode enabled: No sentry alerte'); - HttpOverrides.global = MyHttpOverrides(); - runApp(Gecko(endPointGVA)); } } diff --git a/lib/models/search.dart b/lib/models/search.dart index 6718130..6742966 100644 --- a/lib/models/search.dart +++ b/lib/models/search.dart @@ -8,7 +8,7 @@ import 'package:http/http.dart' as http; class SearchProvider with ChangeNotifier { TextEditingController searchController = TextEditingController(); List searchResult = []; - final cacheDuring = 0 * 60 * 1000; //First number is minutes + final cacheDuring = 20 * 60 * 1000; //First number is minutes int cacheTime = 0; void rebuildWidget() { @@ -33,7 +33,9 @@ class SearchProvider with ChangeNotifier { g1WalletsBox.toMap().forEach((key, value) { if ((value.id != null && value.id.username != null && - value.id.username.contains(searchController.text)) || + value.id.username + .toLowerCase() + .contains(searchController.text)) || value.pubkey.contains(searchController.text)) { searchResult.add(value); return; diff --git a/pubspec.yaml b/pubspec.yaml index 38f9184..b8c4692 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ description: Pay with G1. # pub.dev using `pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 0.0.3+6 +version: 0.0.3+7 environment: sdk: ">=2.7.0 <3.0.0"