mirrored_repositories/future_of_workout/lib/src/setup/view
import 'package:flutter/material.dart';
import 'package:future_of_workout/src/styles/styles.dart';

class DotIndicator extends StatelessWidget {
  const DotIndicator({
    super.key,
    this.isSelected = false,
    this.isCompleted = false,
  });

  final bool isSelected;
  final bool isCompleted;

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.only(right: 4),
      child: AnimatedContainer(
        curve: Curves.ease,
        duration: const Duration(milliseconds: 300),
        width: isSelected ? 64 : 16,
        height: 16,
        decoration: BoxDecoration(
          color: isCompleted ? AppColors.yellow : AppColors.grey,
          borderRadius: BorderRadius.circular(16),
        ),
      ),
    );
  }
}
