TransitionToImage constructor
const
TransitionToImage({
- Key? key,
- required ImageProvider<
Object> image, - double? width,
- double? height,
- BorderRadius? borderRadius,
- Color? color,
- BlendMode? blendMode,
- BoxFit fit = BoxFit.contain,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- bool matchTextDirection = false,
- bool invertColors = false,
- ImageFilter? imageFilter,
- Widget placeholder = const Icon(Icons.clear),
- PlaceHolderBuilder? placeholderBuilder,
- Duration duration = const Duration(milliseconds: 300),
- Tween<
Object?> ? tween, - Curve curve = Curves.easeInOut,
- TransitionType transitionType = TransitionType.fade,
- Widget loadingWidget = const Center(child: const CircularProgressIndicator()),
- LoadingWidgetBuilder? loadingWidgetBuilder,
- bool enableRefresh = false,
- bool longPressForceRefresh = false,
- bool disableMemoryCache = false,
- bool disableMemoryCacheIfFailed = false,
- VoidCallback? loadedCallback,
- VoidCallback? loadFailedCallback,
- bool forceRebuildWidget = false,
- bool printError = false,
Implementation
const TransitionToImage({
Key? key,
required this.image,
this.width,
this.height,
this.borderRadius,
this.color,
this.blendMode,
this.fit = BoxFit.contain,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.matchTextDirection = false,
this.invertColors = false,
this.imageFilter,
this.placeholder = const Icon(Icons.clear),
this.placeholderBuilder,
this.duration = const Duration(milliseconds: 300),
this.tween,
this.curve = Curves.easeInOut,
this.transitionType = TransitionType.fade,
this.loadingWidget = const Center(child: const CircularProgressIndicator()),
this.loadingWidgetBuilder,
this.enableRefresh = false,
this.longPressForceRefresh = false,
this.disableMemoryCache = false,
this.disableMemoryCacheIfFailed = false,
this.loadedCallback,
this.loadFailedCallback,
this.forceRebuildWidget = false,
this.printError = false,
}) : super(key: key);