mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: rank tab
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user