Skip to content

Commit 3df8a92

Browse files
committed
add base
1 parent b2e376d commit 3df8a92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/ui/bypass_apps/bypass_packages_provider.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import 'package:shared_preferences/shared_preferences.dart';
33

44
class BypassPackagesNotifier extends Notifier<Future<List<String>>> {
55
@override
6-
Future<List<String>> build() {
6+
Future<List<String>> build() async {
77
// Load initial state asynchronously
8-
return _loadFromPreferences();
8+
state = _loadFromPreferences();
9+
return await state;
910
}
1011

1112
static const String _prefsKey = 'bypass_packages';

0 commit comments

Comments
 (0)