CustomTextButton constructor
const
CustomTextButton({
- required Function? onPressed,
- required Widget child,
- Key? key,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- Clip clipBehavior = Clip.none,
- WidgetStatesController? statesController,
- bool? isSemanticButton = true,
- CustomButtonSize? size,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Color? color,
TextButton 文本按钮组件
Implementation
const CustomTextButton({
required super.onPressed,
required this.child,
super.key,
super.onLongPress,
super.onHover,
super.onFocusChange,
super.style,
super.focusNode,
super.autofocus = false,
super.clipBehavior = Clip.none,
super.statesController,
this.isSemanticButton = true,
// -------------------------------------------------------- > Custom
super.size,
super.width,
super.height,
super.margin,
super.padding,
this.color,
});