FxTextButton constructor
FxTextButton({
- Key? key,
- required String text,
- required void onPressed()?,
- TextStyle? textStyle,
- Color? background,
- Color? foreground,
- EdgeInsets? padding,
- Color? overlay,
- OutlinedBorder? shape,
- MaterialStateProperty<
TextStyle?> ? textStyleProperty, - MaterialStateProperty<
Color?> ? backgroundProperty, - MaterialStateProperty<
Color?> ? foregroundProperty, - MaterialStateProperty<
EdgeInsets?> ? paddingProperty, - MaterialStateProperty<
Color?> ? overlayProperty, - MaterialStateProperty<
OutlinedBorder?> ? shapeProperty,
Implementation
FxTextButton({
Key? key,
required this.text,
required this.onPressed,
this.textStyle,
this.background,
this.foreground,
this.padding,
this.overlay,
this.shape,
this.textStyleProperty,
this.backgroundProperty,
this.foregroundProperty,
this.paddingProperty,
this.overlayProperty,
this.shapeProperty,
}) : super(key: key);