Move skills system documentation from bottom to top of CLAUDE.md for better organization. Refactor Flutter asset page by extracting UI components into separate files and updating import structure for improved modularity.
42 lines
1.2 KiB
Dart
42 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import '../../../../core/theme/app_spacing.dart';
|
|
|
|
/// 占位卡片组件
|
|
///
|
|
/// 当未选择币种时显示的占位提示卡片。
|
|
class PlaceholderCard extends StatelessWidget {
|
|
final String message;
|
|
final ColorScheme colorScheme;
|
|
const PlaceholderCard({
|
|
super.key,
|
|
required this.message,
|
|
required this.colorScheme,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final isDark = Theme.of(context).brightness == Brightness.dark;
|
|
return Container(
|
|
width: double.infinity,
|
|
padding: const EdgeInsets.all(AppSpacing.xl),
|
|
decoration: BoxDecoration(
|
|
color: isDark
|
|
? colorScheme.surfaceContainer
|
|
: colorScheme.surfaceContainerLowest,
|
|
borderRadius: BorderRadius.circular(AppRadius.lg),
|
|
border: Border.all(
|
|
color: colorScheme.outlineVariant.withOpacity(0.15),
|
|
),
|
|
),
|
|
child: Center(
|
|
child: Text(message,
|
|
style: GoogleFonts.inter(
|
|
color: colorScheme.onSurfaceVariant,
|
|
fontSize: 14,
|
|
)),
|
|
),
|
|
);
|
|
}
|
|
}
|