Skip to content
pubscout

open_filex

5.0.0, released 5 weeks ago by buildtoapp.com

Plugin to open files via native apps, returning a string result

$ flutter pub add open_filex
Source repository

What it does

open_filex lets a Flutter app launch the appropriate native application to open a file and returns the result as a string. It supports iOS, Android, desktop (via ffi) and web.

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

Use it when

  • You need to open a file with the default system app
  • You want a simple cross‑platform solution without writing platform code
  • You need to get a result string from the opened app

Skip it when

  • You need to edit or read the file contents within Flutter
  • You require fine‑grained file handling or custom file pickers

Strengths

  • Cross‑platform support (iOS, Android, desktop, web)
  • No extra dependencies beyond flutter and ffi
  • Handles platform‑specific permissions and FileProvider setup

Weaknesses

  • Requires native configuration on Android (FileProvider)
  • iOS deployment target must be 13.0 or higher
  • No built‑in file picking or editing features

Setup

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

Add Android FileProvider XML and manifest entries; bump iOS deployment target to 13.0; no build_runner needed

import 'package:open_filex/open_filex.dart';

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

Alternatives

Packages that do the same job and could replace open_filex.

Works with

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