import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class RoundIconBtn extends StatelessWidget { final VoidCallback? onTap; final IconData icon; final double? iconSize; final Color? iconColor; final double? height; final double? width; final EdgeInsets? padding; const RoundIconBtn({ Key? key, this.onTap, required this.icon, this.iconSize, this.iconColor, this.height, this.width, this.padding }): super(key: key); @override Widget build(BuildContext context) { return Container( margin: EdgeInsets.all(2), child: InkWell( onTap: onTap ?? (){}, borderRadius: BorderRadius.circular(50), highlightColor: Colors.white10, child: Container( height: height ?? 30, width: width ?? 30, padding: padding, child: Icon(icon,color: iconColor ?? Colors.black,) ), ), ); } }