TImage constructor
const
TImage({
- Key? key,
- String? url,
- double size = 80,
- double previewSize = 350,
- double aspectRatio = 1,
- 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,
Implementation
const TImage({
super.key,
this.url,
this.size = 80,
this.previewSize = 350,
this.aspectRatio = 1,
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,
});