XButton.file constructor
XButton.file({
- required String path,
- double width = 24,
- double height = 24,
- double? size,
- BoxFit fit = BoxFit.cover,
- VoidCallback? onPressed,
- VoidCallback? onLongPressed,
- XButtonType? buttonType,
- XButtonShape? buttonShape,
- BorderRadiusGeometry? borderRadius,
- Color? overlayColor,
- Size? minSize,
- EdgeInsetsGeometry? padding,
Implementation
XButton.file(
{required String path,
double width = 24,
double height = 24,
double? size,
BoxFit fit = BoxFit.cover,
this.onPressed,
this.onLongPressed,
this.buttonType,
this.buttonShape,
this.borderRadius,
this.overlayColor,
this.minSize,
this.padding})
: child = Image.file(File(path),
width: size ?? width, height: size ?? height);