UImage constructor
const
UImage(
- String source, {
- Key? key,
- UFileData? fileData,
- Color? color,
- double? width,
- double? height,
- String? placeholder,
- BoxFit fit = BoxFit.contain,
- double borderRadius = 0,
- String? package,
- BoxShape shape = BoxShape.rectangle,
- BoxBorder? border,
- List<
BoxShadow> ? boxShadow, - Gradient? gradient,
- Color? backgroundColor,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- GestureTapCallback? onDoubleTap,
- bool splash = false,
- double? pressedScale,
- double? opacity,
- String? heroTag,
- String? tooltip,
- String? semanticsLabel,
- bool? semanticsButton,
- bool visible = true,
- double? minWidth,
- double? maxWidth,
- double? minHeight,
- double? maxHeight,
- AlignmentGeometry? alignment,
- VoidCallback? onPress,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCancelCallback? onTapCancel,
- GestureTapCallback? onSecondaryTap,
- HitTestBehavior? hitTestBehavior,
- Color? splashColor,
- Color? highlightColor,
- Color? hoverColor,
- MouseCursor? cursor,
- ValueChanged<
bool> ? onHover, - double? scale,
- double? rotate,
- Offset? translate,
- bool center = false,
- bool safeArea = false,
- int? expanded,
- int? flexible,
- bool positioned = false,
- double? left,
- double? top,
- double? right,
- double? bottom,
- double? positionedWidth,
- double? positionedHeight,
Implementation
const UImage(
this.source, {
super.key,
this.fileData,
this.color,
this.width,
this.height,
this.placeholder,
this.fit = BoxFit.contain,
this.borderRadius = 0,
this.package,
this.shape = BoxShape.rectangle,
this.border,
this.boxShadow,
this.gradient,
this.backgroundColor,
this.padding,
this.margin,
this.onTap,
this.onLongPress,
this.onDoubleTap,
this.splash = false,
this.pressedScale,
this.opacity,
this.heroTag,
this.tooltip,
this.semanticsLabel,
this.semanticsButton,
this.visible = true,
this.minWidth,
this.maxWidth,
this.minHeight,
this.maxHeight,
this.alignment,
this.onPress,
this.onTapDown,
this.onTapUp,
this.onTapCancel,
this.onSecondaryTap,
this.hitTestBehavior,
this.splashColor,
this.highlightColor,
this.hoverColor,
this.cursor,
this.onHover,
this.scale,
this.rotate,
this.translate,
this.center = false,
this.safeArea = false,
this.expanded,
this.flexible,
this.positioned = false,
this.left,
this.top,
this.right,
this.bottom,
this.positionedWidth,
this.positionedHeight,
});