TImage constructor

const TImage({
  1. Key? key,
  2. String? url,
  3. double size = 80,
  4. double previewSize = 350,
  5. double aspectRatio = 1,
  6. String placeholder = 'package:te_widgets/assets/icons/no_image.png',
  7. ShapeBorder border = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(12))),
  8. double padding = 5,
  9. BoxFit fit = BoxFit.cover,
  10. Color? color,
  11. String? title,
  12. String? subTitle,
  13. Color? titleColor,
  14. Color? subTitleColor,
  15. bool disabled = false,
  16. VoidCallback? onShow,
  17. 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,
});