From ce5007bbaa8445573696d6a0803578b124840371 Mon Sep 17 00:00:00 2001 From: DelLevin-Home Date: Mon, 10 Aug 2026 21:13:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=88=91=E7=9A=84=E7=95=8C?= =?UTF-8?q?=E9=9D=A2hero=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/profile/profile_page.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/pages/profile/profile_page.dart b/lib/pages/profile/profile_page.dart index 5d4c82f..d4c86fa 100644 --- a/lib/pages/profile/profile_page.dart +++ b/lib/pages/profile/profile_page.dart @@ -263,18 +263,19 @@ class _ProfilePageState extends State with RouteAware { } Widget _buildPosterMosaic(List paths) { - final posters = paths.take(12).toList(); - while (posters.length < 12) + const cellCount = 30; + final posters = paths.take(cellCount).toList(); + while (posters.length < cellCount) posters.add(posters[posters.length % paths.length]); return GridView.builder( physics: const NeverScrollableScrollPhysics(), padding: EdgeInsets.zero, gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( - crossAxisCount: 4, - mainAxisSpacing: 2, - crossAxisSpacing: 2, + crossAxisCount: 6, + mainAxisSpacing: 1.5, + crossAxisSpacing: 1.5, ), - itemCount: 12, + itemCount: cellCount, itemBuilder: (_, i) => FadeInLocalImage(path: posters[i], fit: BoxFit.cover), );