import 'package:flutter/material.dart';
import 'package:tacban/assets/theme/colors.dart';

class CardInfoCardWidget extends StatelessWidget {
  final String svg;
  final String title;
  final GestureTapCallback? onTap;
  const CardInfoCardWidget({super.key, required this.onTap, required this.svg, required this.title});

  @override
  Widget build(BuildContext context) {
    return Expanded(
      child: InkWell(
        onTap: onTap,
        radius: 0,
        child: Container(
          height: 200,
          decoration: BoxDecoration(
            color: Colors.white,
            borderRadius: BorderRadius.circular(18),
            boxShadow: [
              BoxShadow(
                color: AppColorLight.primaryColor,
                spreadRadius: 0,
                blurRadius: 1,
                blurStyle: BlurStyle.outer
              )
            ]
          ),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              SizedBox(
                child: Image.asset(
                  svg,
                  fit: BoxFit.fill
                )
              ),
              const SizedBox(height: 10),
              Text(title,
                style: Theme.of(context).textTheme.bodySmall?.copyWith(
                  fontWeight: FontWeight.bold,
                  color: AppColorLight.primaryColor,
                  fontSize: 15
                ),
              ),
              const SizedBox(height: 5),
              Text('Maurício P. Batistella Pasini',
                style: Theme.of(context).textTheme.bodySmall?.copyWith(
                  fontWeight: FontWeight.w200,
                  fontSize: 11
                ),
              )
            ],
          ),
        ),
      )
    );
  }
}