mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-27 12:36:27 +08:00
@@ -279,6 +279,7 @@ class _LivePageState extends CommonPageState<LivePage, LiveController>
|
||||
Widget _buildFollowBody(ThemeData theme, List<CardLiveItem> followList) {
|
||||
return SelfSizedHorizontalList(
|
||||
gapSize: 5,
|
||||
padding: EdgeInsets.zero,
|
||||
childBuilder: (index) {
|
||||
final item = followList[index];
|
||||
return SizedBox(
|
||||
|
||||
@@ -61,7 +61,7 @@ class _MemberHomeState extends State<MemberHome>
|
||||
late final gridDelegatePgc = SliverGridDelegateWithExtentAndRatio(
|
||||
mainAxisSpacing: StyleString.cardSpace,
|
||||
crossAxisSpacing: StyleString.cardSpace,
|
||||
maxCrossAxisExtent: Grid.smallCardWidth / 3 * 2,
|
||||
maxCrossAxisExtent: Grid.smallCardWidth * 0.6,
|
||||
childAspectRatio: 0.75,
|
||||
mainAxisExtent: MediaQuery.textScalerOf(context).scale(52),
|
||||
);
|
||||
|
||||
@@ -63,7 +63,7 @@ class _MemberBangumiState extends State<MemberBangumi>
|
||||
late final gridDelegate = SliverGridDelegateWithExtentAndRatio(
|
||||
mainAxisSpacing: StyleString.cardSpace,
|
||||
crossAxisSpacing: StyleString.cardSpace,
|
||||
maxCrossAxisExtent: Grid.smallCardWidth / 3 * 2,
|
||||
maxCrossAxisExtent: Grid.smallCardWidth * 0.6,
|
||||
childAspectRatio: 0.75,
|
||||
mainAxisExtent: MediaQuery.textScalerOf(context).scale(52),
|
||||
);
|
||||
|
||||
@@ -85,28 +85,30 @@ class _MediaPageState extends CommonPageState<MinePage, MineController>
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: controller.list
|
||||
.map(
|
||||
(e) => InkWell(
|
||||
onTap: e.onTap,
|
||||
borderRadius: StyleString.mdRadius,
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 80),
|
||||
child: AspectRatio(
|
||||
aspectRatio: 1,
|
||||
child: Column(
|
||||
spacing: 6,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(
|
||||
size: 22,
|
||||
e.icon,
|
||||
color: primary,
|
||||
),
|
||||
Text(
|
||||
e.title,
|
||||
style: const TextStyle(fontSize: 13),
|
||||
),
|
||||
],
|
||||
(e) => Flexible(
|
||||
child: InkWell(
|
||||
onTap: e.onTap,
|
||||
borderRadius: StyleString.mdRadius,
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 80),
|
||||
child: AspectRatio(
|
||||
aspectRatio: 1,
|
||||
child: Column(
|
||||
spacing: 6,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(
|
||||
size: 22,
|
||||
e.icon,
|
||||
color: primary,
|
||||
),
|
||||
Text(
|
||||
e.title,
|
||||
style: const TextStyle(fontSize: 13),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -378,27 +380,29 @@ class _MediaPageState extends CommonPageState<MinePage, MineController>
|
||||
required TextStyle? lebelStyle,
|
||||
required VoidCallback onTap,
|
||||
}) {
|
||||
return InkWell(
|
||||
onTap: onTap,
|
||||
borderRadius: StyleString.mdRadius,
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 80),
|
||||
child: AspectRatio(
|
||||
aspectRatio: 1,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
count?.toString() ?? '-',
|
||||
style: countStyle,
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
name,
|
||||
style: lebelStyle,
|
||||
),
|
||||
],
|
||||
return Flexible(
|
||||
child: InkWell(
|
||||
onTap: onTap,
|
||||
borderRadius: StyleString.mdRadius,
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 80),
|
||||
child: AspectRatio(
|
||||
aspectRatio: 1,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
count?.toString() ?? '-',
|
||||
style: countStyle,
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
name,
|
||||
style: lebelStyle,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -318,7 +318,7 @@ class _PgcPageState extends CommonPageState<PgcPage, PgcController>
|
||||
late final gridDelegate = SliverGridDelegateWithExtentAndRatio(
|
||||
mainAxisSpacing: StyleString.cardSpace,
|
||||
crossAxisSpacing: StyleString.cardSpace,
|
||||
maxCrossAxisExtent: Grid.smallCardWidth / 3 * 2,
|
||||
maxCrossAxisExtent: Grid.smallCardWidth * 0.6,
|
||||
childAspectRatio: 0.75,
|
||||
mainAxisExtent: MediaQuery.textScalerOf(context).scale(50),
|
||||
);
|
||||
|
||||
@@ -216,7 +216,7 @@ class _PgcIndexPageState extends State<PgcIndexPage>
|
||||
late final gridDelegate = SliverGridDelegateWithExtentAndRatio(
|
||||
mainAxisSpacing: StyleString.cardSpace,
|
||||
crossAxisSpacing: StyleString.cardSpace,
|
||||
maxCrossAxisExtent: Grid.smallCardWidth / 3 * 2,
|
||||
maxCrossAxisExtent: Grid.smallCardWidth * 0.6,
|
||||
childAspectRatio: 0.75,
|
||||
mainAxisExtent: MediaQuery.textScalerOf(context).scale(50),
|
||||
);
|
||||
|
||||
@@ -409,6 +409,7 @@ class _PgcIntroPageState extends TripleState<PgcIntroPage>
|
||||
return SizedBox(
|
||||
height: 48,
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Obx(
|
||||
() => ActionItem(
|
||||
|
||||
@@ -507,6 +507,7 @@ class _UgcIntroPanelState extends TripleState<UgcIntroPanel>
|
||||
return SizedBox(
|
||||
height: 48,
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Obx(
|
||||
() => ActionItem(
|
||||
|
||||
@@ -2272,6 +2272,7 @@ class HeaderControlState extends TripleState<HeaderControl> {
|
||||
if (showFSActionItem && isFullScreen)
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 42,
|
||||
|
||||
Reference in New Issue
Block a user