add some config to project and change come simple ui

This commit is contained in:
DASHU
2024-08-24 00:18:23 +08:00
parent 7eb533d74a
commit b6e8f5e55d
18 changed files with 908 additions and 28 deletions

View File

@@ -0,0 +1,16 @@
import 'package:shared_preferences/shared_preferences.dart';
class DataUtil {
static SharedPreferences? _prefs;
static Future<SharedPreferences> getInstance() async {
if (_prefs == null) {
_prefs = await SharedPreferences.getInstance();
}
return _prefs!;
}
}
class DataKey {
static final String SETTING = "setting";
}