Skip to content
pubscout

open_file_plus

3.4.1+1, released 3 years ago by an unverified publisher

A Flutter plugin to call native applications to open files.

$ flutter pub add open_file_plus
Source repository

What it does

Invokes native platform mechanisms (intents on Android, UTI on iOS, ffi on PC, and dart:html on web) to open files with a string result. It handles various file types and provides custom type and UTI configurations.

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

Use it when

  • You need to open downloaded PDFs, images, or documents using installed native apps.
  • Your app needs cross-platform file opening support including mobile, desktop, and web.

Skip it when

  • You need to parse or read the contents of the files directly within Dart.
  • You only need file picking or saving functionality rather than opening files externally.

Strengths

  • Supports multiple platforms: Android, iOS, PC, and Web.
  • Provides built-in mapping of common file extensions to mime-types and UTIs.

Weaknesses

  • Requires platform-specific setup or permissions (such as FileProvider configuration on Android) for certain use cases.
  • Relies on external native applications being present to successfully open specific file formats.

Setup

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

Requires additional configuration like FileProvider paths in AndroidManifest.xml and specific permissions for handling installation packages or media files on newer Android versions.

import 'package:open_file_plus/open_file_plus.dart';

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

Alternatives

Packages that do the same job and could replace open_file_plus.

Works with

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