new: setting of default collapse

This commit is contained in:
lollipopkit
2024-01-05 21:58:43 +08:00
parent 43fb481aee
commit b442e0f914
20 changed files with 125 additions and 53 deletions

View File

@@ -11,6 +11,7 @@ class Analysis {
static bool enabled = false;
static Future<void> init() async {
if (enabled) return;
if (!BuildMode.isRelease) {
return;
}

View File

@@ -1,10 +1,12 @@
import 'package:flutter/services.dart';
import 'package:toolbox/data/res/misc.dart';
import 'package:toolbox/data/res/store.dart';
abstract final class HomeWidgetMC {
static const _channel = MethodChannel('${Miscs.pkgName}/home_widget');
static void update() {
if (!Stores.setting.autoUpdateHomeWidget.fetch()) return;
_channel.invokeMethod('update');
}
}