BasicButton constructor

const BasicButton({
  1. Key? key,
  2. BasicButtonSize? size,
  3. BasicButtonType type = BasicButtonType.none,
  4. required VoidCallback onPressed,
  5. bool disabled = false,
  6. bool loading = false,
  7. String? text,
  8. Widget? child,
  9. double? width,
  10. double? height,
  11. EdgeInsets? padding,
  12. Color? background,
  13. Color? hoverColor,
  14. Color shadowColor = Colors.transparent,
  15. double? elevation,
  16. List<BoxShadow>? boxShadow,
  17. InteractiveInkFeatureFactory? splashFactory,
  18. OutlinedBorder? shape,
  19. Color? textColor,
  20. double? fontSize,
  21. TextStyle? textStyle,
  22. TextAlign textAlign = TextAlign.center,
  23. int maxLines = 4,
  24. AlignmentGeometry? alignment,
})

Implementation

const BasicButton({
  Key? key,
  this.size,
  this.type = BasicButtonType.none,
  required this.onPressed,
  this.disabled = false,
  this.loading = false,
  this.text,
  this.child,
  this.width,
  this.height,
  this.padding,
  this.background,
  this.hoverColor,
  this.shadowColor = Colors.transparent,
  this.elevation,
  this.boxShadow,
  this.splashFactory,
  this.shape,
  this.textColor,
  this.fontSize,
  this.textStyle,
  this.textAlign = TextAlign.center,
  this.maxLines = 4,
  this.alignment,
}) : super(key: key);