feat(ui): 更新品牌启动页与选集交互
This commit is contained in:
1 parent
4778ce2c75
commit
c1cb7d1c11
87 files changed
+919
-552
No files matched your search
@@ -74,28 +74,17 @@ class _NoticesPageState extends State<NoticesPage> {
|
||||
children: [
|
||||
SizedBox(
|
||||
height: MediaQuery.sizeOf(context).height * 0.7,
|
||||
child: Center(
|
||||
child: EmptyState(
|
||||
key: const Key('notices-error'),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
errorText(
|
||||
l10n,
|
||||
_controller.error,
|
||||
l10n.noticesLoadFailed,
|
||||
),
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(color: AppColors.muted),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
FilledButton(
|
||||
key: const Key('notices-retry'),
|
||||
onPressed: _controller.load,
|
||||
child: Text(l10n.retry),
|
||||
),
|
||||
],
|
||||
icon: Icons.cloud_off_rounded,
|
||||
title: errorText(
|
||||
l10n,
|
||||
_controller.error,
|
||||
l10n.noticesLoadFailed,
|
||||
),
|
||||
actionLabel: l10n.retry,
|
||||
actionKey: const Key('notices-retry'),
|
||||
onAction: _controller.load,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user