add warp config, update to flutter 1.22

This commit is contained in:
hiddify-com
2024-05-31 13:41:35 +02:00
parent 218c6d49bc
commit e2b67c317b
21 changed files with 423 additions and 385 deletions

View File

@@ -23,8 +23,7 @@ class AnalyticsController extends _$AnalyticsController with AppLogger {
return _preferences.getBool(enableAnalyticsPrefKey) ?? true;
}
SharedPreferences get _preferences =>
ref.read(sharedPreferencesProvider).requireValue;
SharedPreferences get _preferences => ref.read(sharedPreferencesProvider).requireValue;
Future<void> enableAnalytics() async {
if (state case AsyncData(value: final enabled)) {