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

View File

@@ -171,7 +171,7 @@ List<SettingsModel> get styleSettings => [
leading: const Icon(Icons.calendar_view_week_outlined), leading: const Icon(Icons.calendar_view_week_outlined),
title: '小卡列表宽度dp限制', title: '小卡列表宽度dp限制',
getSubtitle: () => 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( SettingsModel(
settingsType: SettingsType.normal, settingsType: SettingsType.normal,