mod: 首页样式

This commit is contained in:
guozhigq
2024-01-07 20:15:39 +08:00
parent 8ebb4cc70e
commit 042a0a848d
3 changed files with 186 additions and 170 deletions

View File

@ -9,7 +9,7 @@ import 'package:pilipala/utils/storage.dart';
class HomeController extends GetxController with GetTickerProviderStateMixin {
bool flag = false;
late List tabs;
int initialIndex = 1;
RxInt initialIndex = 1.obs;
late TabController tabController;
late List tabsCtrList;
late List<Widget> tabsPageList;
@ -35,7 +35,7 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
tabsPageList = tabsConfig.map<Widget>((e) => e['page']).toList();
tabController = TabController(
initialIndex: initialIndex,
initialIndex: initialIndex.value,
length: tabs.length,
vsync: this,
);