BaseButton.icon constructor

const BaseButton.icon({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. VoidCallback? onLongPress,
  4. ButtonStyle? style,
  5. FocusNode? focusNode,
  6. bool autofocus,
  7. Clip clipBehavior,
  8. EdgeInsetsGeometry? padding,
  9. Color? color,
  10. Color? disabledColor,
  11. double minSize,
  12. double? pressedOpacity,
  13. BorderRadius? borderRadius,
  14. AlignmentGeometry alignment,
  15. Widget icon,
  16. Widget label,
  17. bool filledButton,
  18. bool filledTonalButton,
  19. bool textButton,
  20. bool outlinedButton,
  21. bool elevatedButton,
  22. bool adaptiveHaptics,
  23. bool useCNButton,
  24. CNButtonStyle? cnButtonStyle,
  25. bool shrinkWrap,
  26. BaseParam? baseParam,
})

CupertinoButton, child is Row(children:icon, label) or MaterialButton, child is Row(children:icon, label) or TextButton.icon or outlinedButtonButton.icon or ElevatedButton.icon

Implementation

const factory BaseButton.icon({
  Key? key,
  VoidCallback? onPressed,
  VoidCallback? onLongPress,
  ButtonStyle? style,
  FocusNode? focusNode,
  bool autofocus,
  Clip clipBehavior,
  EdgeInsetsGeometry? padding,
  Color? color,
  Color? disabledColor,
  double minSize,
  double? pressedOpacity,
  BorderRadius? borderRadius,
  AlignmentGeometry alignment,
  Widget icon,
  Widget label,
  bool filledButton,
  bool filledTonalButton,
  bool textButton,
  bool outlinedButton,
  bool elevatedButton,
  bool adaptiveHaptics,
  bool useCNButton,
  CNButtonStyle? cnButtonStyle,
  bool shrinkWrap,
  BaseParam? baseParam,
}) = _BaseButtonWithIcon;