GetImage constructor
const
GetImage({
- Key? key,
- dynamic imagePath,
- double width = Siz.profileImageSize,
- double height = Siz.profileImageSize,
- BoxFit fit = BoxFit.cover,
- double? radius,
- Color? imageColor,
- BorderRadius? borderRadius,
- Color? loadingColor,
- GestureTapCallback? onTap,
- BoxDecoration? backgroundDecoration,
- PageController? pageController,
- dynamic onPageChanged()?,
- PreferredSizeWidget? appBar,
- Duration imageLoadingDelay = const Duration(milliseconds: 100),
- Color loadingBgColor = Colors.transparent,
- Widget? errorWidget,
- LoadingType loadingType = LoadingType.progress,
- String? errorImagePath,
- ImageType imageType = ImageType.auto,
- Color shimmerBaseColor = const Color(0xFFE0E0E0),
- 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),
});