import 'package:flutter/material.dart'; class StepProgressBar extends StatelessWidget { final int totalSteps; final int currentStep; const StepProgressBar({ super.key, required this.totalSteps, required this.currentStep, }); @override Widget build(BuildContext context) { return Row( children: List.generate(totalSteps, (index) { bool isActive = index < currentStep; return Expanded( child: Container( height: 8, margin: EdgeInsets.symmetric(horizontal: 4), decoration: BoxDecoration( color: isActive ? const Color(0xffF95F62) : const Color(0xffF95F62).withOpacity(0.2), borderRadius: BorderRadius.circular(10), ), ), ); }), ); } }