handle viewinsets

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-24 23:55:20 +08:00
parent 12f7c88786
commit 3b16abf204
19 changed files with 88 additions and 75 deletions

View File

@@ -30,7 +30,7 @@ class ImSettingsItem extends StatelessWidget {
final subtitleStyle = TextStyle(fontSize: 13, color: outline);
if (item.hasSwitch_1()) {
Future<void> onChanged() async {
Future<void> onChanged([_]) async {
item.switch_1.switchOn = !item.switch_1.switchOn;
rebuild();
if (!await onSet()) {
@@ -54,7 +54,7 @@ class ImSettingsItem extends StatelessWidget {
scale: 0.8,
child: Switch(
value: item.switch_1.switchOn,
onChanged: (value) => onChanged(),
onChanged: onChanged,
),
),
);