AppButton.icon constructor

AppButton.icon({
  1. required Widget icon,
  2. Color? fillColor,
  3. Color? hoverColor,
  4. bool? loading,
  5. EdgeInsets? padding,
  6. ValueChanged<bool>? onHover,
  7. FutureOrCallback? onPressed,
  8. FutureOrCallback? onPressedDisabled,
  9. String? tooltip,
  10. double size = 40,
  11. bool showAnimation = true,
  12. Key? key,
})

Implementation

factory AppButton.icon({
  required Widget icon,
  Color? fillColor,
  Color? hoverColor,
  bool? loading,
  EdgeInsets? padding,
  ValueChanged<bool>? onHover,
  FutureOrCallback? onPressed,
  FutureOrCallback? onPressedDisabled,
  String? tooltip,
  double size = 40,
  bool showAnimation = true,
  Key? key,
}) {
  return _AppIconButton(
    key: key,
    fillColor: fillColor,
    hoverColor: hoverColor,
    loading: loading,
    padding: padding,
    onHover: onHover,
    onPressed: onPressed,
    onPressedDisabled: onPressedDisabled,
    tooltip: tooltip,
    size: size,
    showAnimation: showAnimation,
    child: icon,
  );
}