CircleButton constructor

const CircleButton({
  1. Key? key,
  2. required Widget icon,
  3. EdgeInsetsGeometry? clickAreaMargin = const Pad(all: 3.0, left: 3.5),
  4. Color? tapColor = Colors.white24,
  5. Border? border,
  6. VoidCallback? onTap,
  7. Color backgroundColor = Colors.transparent,
  8. double size = defaultSize,
  9. EdgeInsetsGeometry? iconPadding,
  10. double? elevation,
  11. 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);