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.border), ), child: Row( children: [ Container( width: 40, height: 40, decoration: BoxDecoration( color: AppColors.accentMuted, borderRadius: UIConstants.smallCardBorderRadius, ), child: const Icon( Icons.play_arrow_rounded, color: AppColors.accent, size: 22, ), ), const SizedBox(width: UIConstants.spacing12), Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( 'Up Next', style: GoogleFonts.inter( fontSize: 12, fontWeight: FontWeight.w500, color: AppColors.textMuted, ), ), const SizedBox(height: 2), Text( workoutName, style: GoogleFonts.inter( fontSize: 15, fontWeight: FontWeight.w600, color: AppColors.textPrimary, ), ), ], ), ), const Icon( Icons.chevron_right, color: AppColors.textMuted, size: 20, ), ], ), ); } }