chore: clean up

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-20 11:21:19 +08:00
parent ed60c274fc
commit 538494b7ec
90 changed files with 495 additions and 1816 deletions

View File

@@ -176,7 +176,7 @@ class MainController extends GetxController {
void setCount([int count = 0]) async {
if (dynIndex == -1 || navigationBars[dynIndex]['count'] == count) return;
navigationBars[dynIndex]['count'] = count; // 修改 count 属性为新的值
navigationBars[dynIndex]['count'] = count;
navigationBars.refresh();
}

View File

@@ -36,7 +36,7 @@ class _MainAppState extends State<MainApp>
late final _homeController = Get.put(HomeController());
late final _dynamicController = Get.put(DynamicsController());
late int _lastSelectTime = 0; //上次点击时间
late int _lastSelectTime = 0;
late bool enableMYBar;
late bool useSideBar;
@@ -192,7 +192,7 @@ class _MainAppState extends State<MainApp>
value: SystemUiOverlayStyle(
systemNavigationBarColor: Colors.transparent,
systemNavigationBarIconBrightness:
Theme.of(context).brightness.reverse, // 设置虚拟按键图标颜色
Theme.of(context).brightness.reverse,
),
child: Scaffold(
resizeToAvoidBottomInset: false,
@@ -412,11 +412,6 @@ class _MainAppState extends State<MainApp>
? Text(count.toString())
: null,
padding: const EdgeInsets.fromLTRB(6, 0, 6, 0),
// isLabelVisible:
// _mainController.dynamicBadgeType != DynamicBadgeMode.hidden &&
// count > 0,
// backgroundColor: Theme.of(context).colorScheme.primary,
// textColor: Theme.of(context).colorScheme.onInverseSurface,
child: icon,
)
: icon;