Skip to content
pubscout

open_file

4.0.0, released 5 months ago by an unverified publisher

Plugin to open local files with native apps across Android, iOS, web, desktop

WASM-ready
$ flutter pub add open_file
Source repository

What it does

It launches the appropriate native application to view or edit a file given its path. Supports custom MIME types and handles platform-specific permissions.

AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need to open documents from a Flutter app
  • Want to delegate file handling to the device’s default apps

Skip it when

  • You need to edit files within the app
  • You require full control over file rendering

Strengths

  • Cross‑platform support (Android, iOS, web, desktop)
  • Handles many file types out of the box
  • Simple API: OpenFile.open(path)

Weaknesses

  • Requires native configuration on Android (FileProvider)
  • No in‑app preview or editing
  • Limited to opening existing files

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
7

Add dependency, configure Android FileProvider and permissions, iOS UTI setup may be needed

import 'package:open_file/open_file.dart';

OpenFile.open('/sdcard/example.txt');

Alternatives

Packages that do the same job and could replace open_file.

Works with

Packages commonly used together with open_file: ones it builds on, ones built on it, and its own family.