part of 'button.dart';

class ActionIconButton extends StatelessWidget {
  const ActionIconButton({super.key, required this.onTap, required this.icon});

  final Function()? onTap;
  final IconData icon;

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: const EdgeInsets.only(right: 8),
      child: Material(
        color: Colors.transparent,
        child: InkWell(
          onTap: onTap,
          borderRadius: BorderRadius.circular(12),
          child: Container(
            padding: const EdgeInsets.all(8),
            decoration: BoxDecoration(
              color: AppColor.white.withOpacity(0.2),
              borderRadius: BorderRadius.circular(12),
            ),
            child: Icon(icon, color: AppColor.textWhite, size: 20),
          ),
        ),
      ),
    );
  }
}
