feat(flutter): 首页网格改为三列并首位显示全部

This commit is contained in:
Zhou Weidong committed 2026-10-17 22:34:14 +08:00
1 parent 0466b4b425
commit f0db631fa2
4 files changed
+17 -11

No files matched your search

+1 -1
View File
@@ -270,7 +270,7 @@ class _DiscoverPageState extends State<DiscoverPage> {
Widget _categories(AppLocalizations l10n, CategoryController categories) {
final choices = <({String code, String label})>[
(code: CategoryController.allCode, label: l10n.forYou),
(code: CategoryController.allCode, label: l10n.all),
(code: CategoryController.hotCode, label: l10n.hot),
(code: CategoryController.newCode, label: l10n.newest),
for (final category in categories.categories)
@@ -68,9 +68,9 @@ class _HomeDramaGrid extends StatelessWidget {
sliver: SliverGrid(
key: const Key('home-all-dramas-grid'),
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2,
mainAxisSpacing: 16,
crossAxisSpacing: 12,
crossAxisCount: 3,
mainAxisSpacing: 14,
crossAxisSpacing: 10,
childAspectRatio: 2 / 3,
),
delegate: SliverChildBuilderDelegate(