opt reorder

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-28 23:27:37 +08:00
parent 88c01ffca3
commit 11b6f241b0
5 changed files with 37 additions and 22 deletions

View File

@@ -0,0 +1,18 @@
import 'package:flutter/material.dart';
mixin ReorderMixin<T extends StatefulWidget> on State<T> {
late ColorScheme scheme;
@override
void didChangeDependencies() {
super.didChangeDependencies();
scheme = ColorScheme.of(context);
}
Widget proxyDecorator(Widget child, _, _) {
return ColoredBox(
color: scheme.onInverseSurface,
child: child,
);
}
}