FxTextButton.text constructor

FxTextButton.text({
  1. Key? key,
  2. void onPressed()?,
  3. required String text,
  4. TextStyle? textStyle = FXText.content,
  5. Color? background = Colors.transparent,
  6. Color? foreground,
  7. EdgeInsets? padding = const EdgeInsets.fromLTRB(0, 8, 0, 8),
  8. Color? overlay = Colors.transparent,
  9. 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,
});