opt rank type

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-16 17:49:20 +08:00
parent 35bc4a6ece
commit 1326cc4966
3 changed files with 36 additions and 101 deletions

View File

@@ -32,7 +32,7 @@ class _RankPageState extends State<RankPage>
),
child: Column(
children: List.generate(
rankTabsConfig.length,
RankType.values.length,
(index) => Obx(
() => IntrinsicHeight(
child: InkWell(
@@ -65,7 +65,7 @@ class _RankPageState extends State<RankPage>
padding:
const EdgeInsets.symmetric(vertical: 7),
child: Text(
rankTabsConfig[index]['label'],
RankType.values[index].label,
style: TextStyle(
color:
index == _rankController.tabIndex.value
@@ -92,10 +92,10 @@ class _RankPageState extends State<RankPage>
child: TabBarView(
physics: const NeverScrollableScrollPhysics(),
controller: _rankController.tabController,
children: rankTabsConfig
children: RankType.values
.map((item) => ZonePage(
rid: item['rid'],
seasonType: item['season_type'],
rid: item.rid,
seasonType: item.seasonType,
))
.toList(),
),