universal_file_previewer 0.3.0
universal_file_previewer: ^0.3.0 copied to clipboard
Preview 50+ file formats (PDF, images, video, audio, code, zip, markdown, CSV, JSON and more) with zero heavy dependencies. Uses pure Dart + native platform channels.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add universal_file_previewerThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
universal_file_previewer: ^0.3.0Alternatively, 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:universal_file_previewer/universal_file_previewer.dart';