import 'package:shared_preferences/shared_preferences.dart'; class AppStateManager { static const String _modeKey = 'mode'; // Installing the bubbles or balloons mod static Future getMode() async { SharedPreferences prefs = await SharedPreferences.getInstance(); return prefs.getBool(_modeKey) ?? true; } static Future setMode(bool mode) async { SharedPreferences prefs = await SharedPreferences.getInstance(); await prefs.setBool(_modeKey, mode); } }