thumbnailItemBuilder method

Widget thumbnailItemBuilder(
  1. BuildContext context,
  2. Uint8List? thumbNail
)

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();

}