CircleButton constructor
const
CircleButton({
- Key? key,
- required Widget icon,
- EdgeInsetsGeometry? clickAreaMargin = const Pad(all: 3.0, left: 3.5),
- Color? tapColor = Colors.white24,
- Border? border,
- VoidCallback? onTap,
- Color backgroundColor = Colors.transparent,
- double size = defaultSize,
- EdgeInsetsGeometry? iconPadding,
- double? elevation,
- bool debugShowClickableArea = false,
Implementation
const CircleButton({
Key? key,
required this.icon,
this.clickAreaMargin = const Pad(all: 3.0, left: 3.5),
this.tapColor = Colors.white24,
this.border,
this.onTap,
this.backgroundColor = Colors.transparent,
this.size = defaultSize,
this.iconPadding,
this.elevation,
bool debugShowClickableArea = false,
}) : colorOfClickableArea =
debugShowClickableArea ? const Color(0xBBFF0000) : const Color(0x00000000),
super(key: key);