preview method

  1. @override
Widget preview(
  1. BuildContext context,
  2. FileData file
)
override

Implementation

@override
Widget preview(BuildContext context, FileData file) {
  return Image.memory(
    file.data,
    fit: BoxFit.cover,
    errorBuilder: (context, error, stackTrace) => const Icon(Icons.block),
  );
}