76 lines
2.3 KiB
Dart
76 lines
2.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'package:trainhub_flutter/core/constants/ui_constants.dart';
|
|
import 'package:trainhub_flutter/core/theme/app_colors.dart';
|
|
|
|
class WelcomeHeader extends StatelessWidget {
|
|
const WelcomeHeader({super.key, required this.programName});
|
|
|
|
final String programName;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
'WELCOME BACK',
|
|
style: GoogleFonts.jetBrainsMono(
|
|
fontSize: 11,
|
|
fontWeight: FontWeight.w600,
|
|
letterSpacing: 2,
|
|
color: AppColors.accent,
|
|
),
|
|
),
|
|
const SizedBox(height: UIConstants.spacing4),
|
|
Row(
|
|
children: [
|
|
Expanded(
|
|
child: Text(
|
|
programName.toUpperCase(),
|
|
style: GoogleFonts.chakraPetch(
|
|
fontSize: 28,
|
|
fontWeight: FontWeight.w700,
|
|
letterSpacing: 0.5,
|
|
color: AppColors.textPrimary,
|
|
),
|
|
),
|
|
),
|
|
Container(
|
|
padding: const EdgeInsets.symmetric(
|
|
horizontal: UIConstants.spacing12,
|
|
vertical: 6,
|
|
),
|
|
decoration: BoxDecoration(
|
|
color: AppColors.accentMuted,
|
|
borderRadius: UIConstants.smallCardBorderRadius,
|
|
border: Border.all(color: AppColors.accentBorder),
|
|
),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
const Icon(
|
|
Icons.sports_martial_arts,
|
|
size: 14,
|
|
color: AppColors.accent,
|
|
),
|
|
const SizedBox(width: 6),
|
|
Text(
|
|
'ACTIVE PROGRAM',
|
|
style: GoogleFonts.jetBrainsMono(
|
|
fontSize: 10,
|
|
fontWeight: FontWeight.w600,
|
|
letterSpacing: 1.5,
|
|
color: AppColors.accent,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|