AppButton.icon constructor

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

Implementation

factory AppButton.icon({
  required Widget icon,
  Color? fillColor,
  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,
    loading: loading,
    padding: padding,
    onHover: onHover,
    onPressed: onPressed,
    onPressedDisabled: onPressedDisabled,
    tooltip: tooltip,
    size: size,
    showAnimation: showAnimation,
    child: icon,
  );
}