thumbnailItemBuilder method
Builds the overlapping thumbnail
Implementation
Widget thumbnailItemBuilder(
BuildContext context, Uint8List? thumbNail){
Widget assetItemBuilder(){
return ClipRRect(
borderRadius: BorderRadius.circular(8),
child: Container(
height: 36,
width: 36,
child: thumbNail != null ? Image.memory(
thumbNail,
filterQuality: FilterQuality.high,
fit: BoxFit.fitWidth,
) : Container()
),
);
}
if(thumbNail != null)
return assetItemBuilder();
else
return SizedBox.shrink();
}