TImage constructor
const
TImage({
- Key? key,
- String? url,
- Uint8List? bytes,
- double? size,
- double? width,
- double? height,
- double? aspectRatio,
- AlignmentGeometry alignment = Alignment.center,
- double previewSize = 350,
- String placeholder = 'package:te_widgets/assets/icons/no_image.png',
- ShapeBorder border = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(12))),
- double padding = 5,
- BoxFit fit = BoxFit.cover,
- Color? color,
- String? title,
- String? subTitle,
- Color? titleColor,
- Color? subTitleColor,
- bool disabled = false,
- VoidCallback? onShow,
- VoidCallback? onHide,
- String? cacheKey,
- BaseCacheManager? cacheManager,
- TextOverflow? textOverflow,
- int? maxLines,
- bool forceCache = false,
- bool showTitleSubtitleOverlayOnHover = false,
- bool overlayTitleSubtitle = false,
- VoidCallback? onTap,
Creates an image widget.
Implementation
const TImage({
super.key,
this.url,
this.bytes,
this.size,
this.width,
this.height,
this.aspectRatio,
this.alignment = Alignment.center,
this.previewSize = 350,
this.placeholder = 'package:te_widgets/assets/icons/no_image.png',
this.border = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(12))),
this.padding = 5,
this.fit = BoxFit.cover,
this.color,
this.title,
this.subTitle,
this.titleColor,
this.subTitleColor,
this.disabled = false,
this.onShow,
this.onHide,
this.cacheKey,
this.cacheManager,
this.textOverflow,
this.maxLines,
this.forceCache = false,
this.showTitleSubtitleOverlayOnHover = false,
this.overlayTitleSubtitle = false,
this.onTap,
});