BasicButton constructor
const
BasicButton({
- Key? key,
- BasicButtonSize? size,
- BasicButtonType type = BasicButtonType.none,
- required VoidCallback onPressed,
- bool disabled = false,
- bool loading = false,
- String? text,
- Widget? child,
- double? width,
- double? height,
- EdgeInsets? padding,
- Color? background,
- Color? hoverColor,
- Color shadowColor = Colors.transparent,
- double? elevation,
- List<
BoxShadow> ? boxShadow, - InteractiveInkFeatureFactory? splashFactory,
- OutlinedBorder? shape,
- Color? textColor,
- double? fontSize,
- TextStyle? textStyle,
- TextAlign textAlign = TextAlign.center,
- int maxLines = 4,
- 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);