FxTextButton.text constructor
FxTextButton.text({
- Key? key,
- void onPressed()?,
- required String text,
- TextStyle? textStyle = FXText.content,
- Color? background = Colors.transparent,
- Color? foreground,
- EdgeInsets? padding = const EdgeInsets.fromLTRB(0, 8, 0, 8),
- Color? overlay = Colors.transparent,
- OutlinedBorder? shape,
扩大点击区域请设置padding 默认FXText.content样式
Implementation
FxTextButton.text({
super.key,
this.onPressed,
required this.text,
this.textStyle = FXText.content,
this.background = Colors.transparent,
this.foreground,
this.padding = const EdgeInsets.fromLTRB(0, 8, 0, 8),
this.overlay = Colors.transparent,
this.shape,
});