11 lines
236 B
Dart
11 lines
236 B
Dart
import 'dart:io';
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
Widget shareThumbnail(String path) => Image.file(
|
|
File(path),
|
|
height: 180,
|
|
fit: BoxFit.contain,
|
|
cacheWidth: 720,
|
|
errorBuilder: (_, _, _) => const SizedBox.shrink(),
|
|
);
|