feat(flutter): 统一空列表占位组件
This commit is contained in:
1 parent
19babb8f4a
commit
6d08330388
24 files changed
+394
-63
No files matched your search
@@ -12,6 +12,7 @@ import '../../core/data/services/auth_controller.dart';
|
||||
import '../../core/data/services/interaction_controller.dart';
|
||||
import '../../core/data/services/favorite_controller.dart';
|
||||
import '../../core/formatting/error_text.dart';
|
||||
import '../../core/widgets/empty_state.dart';
|
||||
import '../../core/widgets/remote_image.dart';
|
||||
import '../../core/theme/app_colors.dart';
|
||||
import '../../core/theme/app_theme.dart';
|
||||
@@ -670,12 +671,11 @@ class _MyPageState extends State<MyPage> {
|
||||
const SizedBox(height: 9),
|
||||
]
|
||||
else
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 22),
|
||||
child: Text(
|
||||
l10n.noSavedShows,
|
||||
style: const TextStyle(color: Color(0xFFE6E1E3)),
|
||||
),
|
||||
EmptyState(
|
||||
key: const Key('mine-saved-empty'),
|
||||
icon: Icons.bookmark_border_rounded,
|
||||
title: l10n.noSavedShows,
|
||||
subtitle: l10n.emptyHint,
|
||||
),
|
||||
// 最近观看(服务端 /app/watch/recent):只渲染能在已加载目录里匹配到的剧;
|
||||
// 匹配不到的(例如不在当前首页分区里)先不显示,K2 的记录页会做独立请求。
|
||||
@@ -732,9 +732,11 @@ class _MyPageState extends State<MyPage> {
|
||||
],
|
||||
)
|
||||
else if (_recentDramas.isEmpty)
|
||||
Text(
|
||||
l10n.noStories,
|
||||
style: const TextStyle(color: Color(0xFFB7B3B8)),
|
||||
EmptyState(
|
||||
key: const Key('mine-recent-empty'),
|
||||
icon: Icons.history_rounded,
|
||||
title: l10n.noStories,
|
||||
subtitle: l10n.emptyHint,
|
||||
)
|
||||
else
|
||||
for (final drama in _recentDramas) ...[
|
||||
|
||||
Reference in new issue
Block a user