2026-04-05 22:38:56 +08:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import '../../../../core/theme/app_spacing.dart';
|
2026-04-05 23:37:27 +08:00
|
|
|
import '../../../../core/theme/app_theme.dart';
|
2026-04-06 01:58:08 +08:00
|
|
|
import '../../../../core/theme/app_theme_extension.dart';
|
2026-04-05 22:38:56 +08:00
|
|
|
|
|
|
|
|
/// 占位卡片组件
|
|
|
|
|
///
|
|
|
|
|
/// 当未选择币种时显示的占位提示卡片。
|
|
|
|
|
class PlaceholderCard extends StatelessWidget {
|
|
|
|
|
final String message;
|
|
|
|
|
const PlaceholderCard({
|
|
|
|
|
super.key,
|
|
|
|
|
required this.message,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
padding: const EdgeInsets.all(AppSpacing.xl),
|
|
|
|
|
decoration: BoxDecoration(
|
2026-04-06 01:58:08 +08:00
|
|
|
color: context.appColors.surfaceCard,
|
2026-04-05 22:38:56 +08:00
|
|
|
borderRadius: BorderRadius.circular(AppRadius.lg),
|
|
|
|
|
border: Border.all(
|
2026-04-06 01:58:08 +08:00
|
|
|
color: context.appColors.ghostBorder,
|
2026-04-05 22:38:56 +08:00
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Text(message,
|
2026-04-05 23:37:27 +08:00
|
|
|
style: AppTextStyles.headlineMedium(context).copyWith(
|
2026-04-06 01:58:08 +08:00
|
|
|
color: context.colors.onSurfaceVariant,
|
2026-04-05 22:38:56 +08:00
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|