mirrored_repositories/flutter_finance_app/lib
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

class GraphCardWidget extends StatelessWidget {
  final String title;
  final Color activeColor, fontColor;
  final bool isActive;

  final int activeIndex;
  GraphCardWidget({
    Key key,
    this.title,
    this.activeColor,
    this.fontColor,
    this.isActive,
    this.activeIndex,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 50,
      width: MediaQuery.of(context).size.width / 6.05,
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(
          20.0,
        ),
        color: activeColor,
      ),
      child: Center(
        child: Text(
          title,
          textAlign: TextAlign.center,
          style: GoogleFonts.spartan(
            fontSize: 10,
            fontWeight: FontWeight.w500,
            color: fontColor,
          ),
        ),
      ),
    );
  }
}
