mirrored_repositories/pokedex/lib/features/home/presentation/ui
import 'package:flutter/material.dart';

class MetricDetails extends StatelessWidget {
  final String title;
  final String value;

  const MetricDetails({super.key, required this.title, required this.value});

  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.center,
      children: [
        Text(
          value,
          style: TextStyle(
            fontSize: 22,
            fontWeight: FontWeight.w500,
            color: Theme.of(context).colorScheme.onPrimary,
          ),
        ),
        Text(
          title,
          style: TextStyle(color: Theme.of(context).colorScheme.outline),
        ),
      ],
    );
  }
}
