import 'package:flutter/material.dart';
import 'package:cake_wallet/palette.dart';

class YatPageIndicator extends StatelessWidget {
  YatPageIndicator({this.filled});

  final int filled;

  @override
  Widget build(BuildContext context) {
    return Container(
        width: 44,
        child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: List.generate(3, (index) {
              final size = 8.0;
              final isFilled = index == filled;

              return Container(
                  height: size,
                  width: size,
                  decoration: BoxDecoration(
                      shape: BoxShape.circle,
                      color: isFilled
                          ? Palette.frostySky
                          : Palette.stateGray.withOpacity(0.1)
                  )
              );
            })
        )
    );
  }
}