import 'package:comwell_key_app/themes/light_theme.dart';
import 'package:flutter/material.dart';

class UpgradesCounter extends StatelessWidget {
  final int quantity;
  const UpgradesCounter({super.key, required this.quantity});

  @override
  Widget build(BuildContext context) {
    final theme = Theme.of(context);
    return Container(
      width: 24,
      height: 24,
      decoration: BoxDecoration(
        color: quantity > 0 ? Theme.of(context).colorScheme.onSurface : Colors.transparent ,
        shape: BoxShape.circle,
        border: Border.all(color: colorDivider, width: 1.5),
      ),
      child: quantity > 0 ? Center(
        child: Text(quantity.toString(), style: theme.textTheme.headlineSmall?.copyWith(color: Colors.white, fontSize: 11)),
      ) : const SizedBox.shrink(),
    );
  }
}