Skip to content
pubscout

utopia_save_file

0.2.6, released 3 weeks ago by utopiasoft.io

Unified and correct implementation of file saving across platforms.

WASM-ready
$ flutter pub add utopia_save_file
Source repository

What it does

UtopiaSaveFile provides a unified API to save files across Android, iOS, macOS, and Web. It handles MIME type inference, filename extensions, and triggers platform-native save dialogs or share sheets.

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

Use it when

  • You need to let users save files or documents generated by your app across multiple platforms
  • You want a unified API that handles platform-specific save panels, system files apps, or share sheets

Skip it when

  • You only need local background file caching without user interaction
  • You are building a server-side Dart application

Strengths

  • Provides a unified interface for saving files on Android, iOS, macOS, and Web
  • Automatically infers MIME types and handles extension matching
  • Requires no special storage permissions on Android or property list changes on iOS

Weaknesses

  • Web downloads complete immediately via anchor elements even if the user cancels later
  • Platform behavior varies significantly (system files app on Android, share sheet on iOS, save panel on macOS)

Setup

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

No permissions needed on Android. No special Info.plist configuration is needed on iOS.

await UtopiaSaveFile.fromBytes(
  bytes,
  name: 'report.pdf',
  mime: 'application/pdf',
);

Alternatives

Packages that do the same job and could replace utopia_save_file.

Works with

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