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