feat(flutter): 精简首页标题并重做空态视觉
This commit is contained in:
1 parent
b5a8656ff0
commit
2dd4627bdc
5 files changed
+127
-63
No files matched your search
@@ -144,24 +144,8 @@ class _DiscoverPageState extends State<DiscoverPage> {
|
||||
),
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 18, 16, 12),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
_categories(l10n, categories),
|
||||
const SizedBox(height: 18),
|
||||
Text(
|
||||
l10n.allDramas,
|
||||
key: const Key('home-all-dramas-title'),
|
||||
style: const TextStyle(
|
||||
color: AppColors.onPrimary,
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w700,
|
||||
height: 1.2,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
padding: const EdgeInsets.fromLTRB(16, 18, 16, 14),
|
||||
child: _categories(l10n, categories),
|
||||
),
|
||||
),
|
||||
_HomeDramaGrid(
|
||||
@@ -277,6 +261,7 @@ class _DiscoverPageState extends State<DiscoverPage> {
|
||||
(code: 'category-${category.id}', label: category.name),
|
||||
];
|
||||
return SizedBox(
|
||||
key: const Key('home-category-chips'),
|
||||
height: 32,
|
||||
child: ListView.separated(
|
||||
scrollDirection: Axis.horizontal,
|
||||
|
||||
Reference in new issue
Block a user