file_launcher 0.2.0
file_launcher: ^0.2.0 copied to clipboard
Open local files or in-memory bytes with native viewers on iOS, Android, macOS, Windows and Linux, with a share-sheet fallback and no storage permissions.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add file_launcherThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
file_launcher: ^0.2.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:file_launcher/file_launcher.dart';