mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 16:48:16 +08:00
mod: 多个toast改用刷新方式显示
This commit is contained in:
@@ -30,7 +30,8 @@ void main() async {
|
|||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
MediaKit.ensureInitialized();
|
MediaKit.ensureInitialized();
|
||||||
await GStrorage.init();
|
await GStrorage.init();
|
||||||
if (GStrorage.setting.get(SettingBoxKey.autoClearCache, defaultValue: false)) {
|
if (GStrorage.setting
|
||||||
|
.get(SettingBoxKey.autoClearCache, defaultValue: false)) {
|
||||||
await CacheManage.clearLibraryCache();
|
await CacheManage.clearLibraryCache();
|
||||||
}
|
}
|
||||||
if (GStrorage.setting
|
if (GStrorage.setting
|
||||||
@@ -56,7 +57,8 @@ void main() async {
|
|||||||
Request();
|
Request();
|
||||||
await Request.setCookie();
|
await Request.setCookie();
|
||||||
RecommendFilter();
|
RecommendFilter();
|
||||||
|
SmartDialog.config.toast =
|
||||||
|
SmartConfigToast(displayType: SmartToastType.onlyRefresh);
|
||||||
// 异常捕获 logo记录
|
// 异常捕获 logo记录
|
||||||
final Catcher2Options debugConfig = Catcher2Options(
|
final Catcher2Options debugConfig = Catcher2Options(
|
||||||
SilentReportMode(),
|
SilentReportMode(),
|
||||||
|
|||||||
Reference in New Issue
Block a user