CustomFilledButton constructor

const CustomFilledButton({
  1. required Function? onPressed,
  2. required Widget child,
  3. Key? key,
  4. VoidCallback? onLongPress,
  5. ValueChanged<bool>? onHover,
  6. ValueChanged<bool>? onFocusChange,
  7. ButtonStyle? style,
  8. FocusNode? focusNode,
  9. bool autofocus = false,
  10. Clip clipBehavior = Clip.none,
  11. WidgetStatesController? statesController,
  12. CustomButtonSize? size,
  13. double? width,
  14. double? height,
  15. EdgeInsetsGeometry? margin,
  16. EdgeInsetsGeometry? padding,
  17. Color? foregroundColor,
  18. Color? backgroundColor,
})

FilledButton 填充按钮

Implementation

const CustomFilledButton({
  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,
  // -------------------------------------------------------- > Custom
  super.size,
  super.width,
  super.height,
  super.margin,
  super.padding,
  this.foregroundColor,
  this.backgroundColor,
});