opt: rank tab

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-12 10:49:36 +08:00
parent 12a236f397
commit f571121b66
2 changed files with 4 additions and 5 deletions

View File

@@ -28,8 +28,8 @@ class _RankPageState extends State<RankPage>
super.build(context);
return Row(
children: [
Expanded(
flex: 18,
SizedBox(
width: 64,
child: SingleChildScrollView(
padding: EdgeInsets.only(
bottom: MediaQuery.paddingOf(context).bottom + 80,
@@ -63,7 +63,7 @@ class _RankPageState extends State<RankPage>
child: Container(
alignment: Alignment.center,
padding:
const EdgeInsets.symmetric(vertical: 10),
const EdgeInsets.symmetric(vertical: 7),
child: Text(
_rankController.tabs[index]['label'],
style: TextStyle(
@@ -91,7 +91,6 @@ class _RankPageState extends State<RankPage>
),
),
Expanded(
flex: 82,
child: TabBarView(
physics: const NeverScrollableScrollPhysics(),
controller: _rankController.tabController,

View File

@@ -171,7 +171,7 @@ List<SettingsModel> get styleSettings => [
leading: const Icon(Icons.calendar_view_week_outlined),
title: '小卡列表宽度dp限制',
getSubtitle: () =>
'当前:${GStorage.mediumCardWidth.toInt()}dp屏幕宽度:${MediaQuery.of(Get.context!).size.width.toPrecision(2)}dp。宽度越小列数越多。',
'当前:${GStorage.smallCardWidth.toInt()}dp屏幕宽度:${MediaQuery.of(Get.context!).size.width.toPrecision(2)}dp。宽度越小列数越多。',
),
SettingsModel(
settingsType: SettingsType.normal,