#26 new & fix
- new: click to refresh - fix: SharedPreference setPrefix
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 377;
|
||||
static const int build = 379;
|
||||
static const String engine = "3.10.6";
|
||||
static const String buildAt = "2023-07-16 23:02:53.506145";
|
||||
static const int modifications = 3;
|
||||
static const String buildAt = "2023-07-19 19:18:31.520465";
|
||||
static const int modifications = 7;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:hive_flutter/hive_flutter.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:toolbox/data/model/ssh/virtual_key.dart';
|
||||
|
||||
import 'app.dart';
|
||||
@@ -38,6 +39,8 @@ Future<void> initApp() async {
|
||||
final settings = locator<SettingStore>();
|
||||
await loadFontFile(settings.fontPath.fetch());
|
||||
|
||||
SharedPreferences.setPrefix('');
|
||||
|
||||
Logger.root.level = Level.ALL;
|
||||
Logger.root.onRecord.listen((record) {
|
||||
// ignore: avoid_print
|
||||
|
||||
@@ -91,7 +91,6 @@ class _SettingPageState extends State<SettingPage> {
|
||||
_editorDarkTheme.value = _setting.editorDarkTheme.fetch()!;
|
||||
_keyboardType.value = _setting.keyboardType.fetch()!;
|
||||
_rotateQuarter.value = _setting.fullScreenRotateQuarter.fetch()!;
|
||||
SharedPreferences.setPrefix('');
|
||||
SharedPreferences.getInstance().then((value) => _sp = value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user