memoryPicWithFadeIn method
Implementation
Widget memoryPicWithFadeIn({GlobalKey? gk,
String? toolTip,
required Uint8List bytes,
Alignment alignment = Alignment.center,
double? width,
double? height,
double padding = 20}) =>
Container(
key: gk,
padding: EdgeInsets.all(padding),
alignment: alignment,
width: width,
height: height,
child: toolTip == null
? FadeInImage(
fadeInDuration: const Duration(milliseconds: 200),
alignment: alignment,
placeholder: const AssetImage(
'lib/assets/images/loading-icon-256x256.png',
package: 'flutter_callouts'),
image: MemoryImage(bytes),
width: width,
height: height,
)
: Tooltip(
message: toolTip,
child: FadeInImage(
fadeInDuration: const Duration(milliseconds: 200),
alignment: alignment,
placeholder: const AssetImage(
'lib/assets/images/loading-icon-256x256.png',
package: 'flutter_callouts'),
image: MemoryImage(bytes),
width: width,
height: height,
)),
);