CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String? text,
  3. required Function? onPressed,
  4. IconData? icon,
  5. Widget? leading,
  6. Widget? trailing,
  7. Widget? content,
  8. Color? color,
  9. Color? textColor,
  10. bool loading = false,
  11. bool small = false,
  12. bool expanded = false,
  13. bool outlined = false,
  14. Color? bgColor,
  15. bool enableGlass = false,
  16. int? glassDensityMultiplier,
  17. Color? glassTintColor,
  18. double? glassBlur,
  19. double? borderRadius,
})

Implementation

const CustomButton({
  Key? key,
  required this.text,
  required this.onPressed,
  this.icon,
  this.leading,
  this.trailing,
  this.content,
  this.color,
  this.textColor,
  this.loading = false,
  this.small = false,
  this.expanded = false,
  this.outlined = false,
  this.bgColor,
  this.enableGlass = false,
  this.glassDensityMultiplier,
  this.glassTintColor,
  this.glassBlur,
  this.borderRadius,
}) : super(key: key);