70 lines
2.2 KiB
Dart
70 lines
2.2 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 NextWorkoutBanner extends StatelessWidget {
|
|
const NextWorkoutBanner({super.key, required this.workoutName});
|
|
|
|
final String workoutName;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
width: double.infinity,
|
|
padding: const EdgeInsets.all(UIConstants.cardPadding),
|
|
decoration: BoxDecoration(
|
|
color: AppColors.surfaceContainer,
|
|
borderRadius: UIConstants.cardBorderRadius,
|
|
border: Border.all(color: AppColors.accentBorder),
|
|
),
|
|
child: Row(
|
|
children: [
|
|
Container(
|
|
width: 40,
|
|
height: 40,
|
|
decoration: BoxDecoration(
|
|
color: AppColors.accent,
|
|
borderRadius: UIConstants.smallCardBorderRadius,
|
|
boxShadow: UIConstants.accentGlow,
|
|
),
|
|
child: const Icon(
|
|
Icons.play_arrow_rounded,
|
|
color: AppColors.zinc950,
|
|
size: 22,
|
|
),
|
|
),
|
|
const SizedBox(width: UIConstants.spacing12),
|
|
Expanded(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
'UP NEXT',
|
|
style: GoogleFonts.jetBrainsMono(
|
|
fontSize: 10,
|
|
fontWeight: FontWeight.w600,
|
|
letterSpacing: 1.5,
|
|
color: AppColors.accent,
|
|
),
|
|
),
|
|
const SizedBox(height: 2),
|
|
Text(
|
|
workoutName.toUpperCase(),
|
|
style: GoogleFonts.chakraPetch(
|
|
fontSize: 15,
|
|
fontWeight: FontWeight.w600,
|
|
letterSpacing: 0.5,
|
|
color: AppColors.textPrimary,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
const Icon(Icons.chevron_right, color: AppColors.textMuted, size: 20),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|