AppButton.icon constructor
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,
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,
);
}