GetImage constructor

const GetImage({
  1. Key? key,
  2. dynamic imagePath,
  3. double width = Siz.profileImageSize,
  4. double height = Siz.profileImageSize,
  5. BoxFit fit = BoxFit.cover,
  6. double? radius,
  7. Color? imageColor,
  8. BorderRadius? borderRadius,
  9. Color? loadingColor,
  10. GestureTapCallback? onTap,
  11. BoxDecoration? backgroundDecoration,
  12. PageController? pageController,
  13. dynamic onPageChanged(
    1. int
    )?,
  14. PreferredSizeWidget? appBar,
  15. Duration imageLoadingDelay = const Duration(milliseconds: 100),
  16. Color loadingBgColor = Colors.transparent,
  17. Widget? errorWidget,
  18. LoadingType loadingType = LoadingType.progress,
  19. String? errorImagePath,
  20. ImageType imageType = ImageType.auto,
  21. Color shimmerBaseColor = const Color(0xFFE0E0E0),
  22. Color shimmerHighlightColor = const Color(0xFFF5F5F5),
})

Implementation

const GetImage({
  super.key,
  this.imagePath,
  this.width = Siz.profileImageSize,
  this.height = Siz.profileImageSize,
  this.fit = BoxFit.cover,
  this.radius,
  this.imageColor,
  this.borderRadius,
  this.loadingColor,
  this.onTap,
  this.backgroundDecoration,
  this.pageController,
  this.onPageChanged,
  this.appBar,
  this.imageLoadingDelay = const Duration(milliseconds: 100),
  this.loadingBgColor = Colors.transparent,
  this.errorWidget,
  this.loadingType = LoadingType.progress,
  this.errorImagePath,
  this.imageType = ImageType.auto,
  this.shimmerBaseColor = const Color(0xFFE0E0E0),
  this.shimmerHighlightColor = const Color(0xFFF5F5F5),
});