yu_file_preview 0.1.1
yu_file_preview: ^0.1.1 copied to clipboard
Full-screen media preview for Flutter. Integrates yuni_photo_view, yu_ni_image_widget, and yu_ni_player. Supports image, video, multi-platform UI.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add yu_file_previewThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
yu_file_preview: ^0.1.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:yu_file_preview/yu_file_preview.dart';