mirrored_repositories/Flutter--Pokedex/lib/features/pokedex/screens/home/pages
import 'package:flutter/material.dart';
import 'package:pokedex_app/common/models/pokemon.dart';

class TypeWidget extends StatelessWidget {
  const TypeWidget({Key? key, required this.name}) : super(key: key);
  final String name;

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.only(bottom: 4.0),
      child: Container(
        decoration: BoxDecoration( 
        color: Colors.white.withOpacity(0.2),
        borderRadius: BorderRadius.circular(16)
        ),
        child: Padding(
          padding: const EdgeInsets.all(6),
          child: Text(name, style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold,
          fontSize: 12)),
        ),
      ),
    );
  }
}
