Search packages, repositories and app categories

Package detailsv0.12.0

flutterpi_tool

A tool to make development & distribution of flutter-pi apps easier.

AndroidiOSmacOSWindowsLinux
30-day downloads
3.2K
Likes
44
Pub points
40

Install package

flutter pub add flutterpi_tool

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

flutterpi_tool is a development and distribution utility designed to simplify the creation, testing, and deployment of Flutter applications for embedded and desktop platforms using flutter-pi. It streamlines setup, builds, and packaging processes across multiple operating systems, including Linux, Windows, macOS, Android, and iOS. The tool enhances workflow efficiency by automating repetitive tasks related to cross-platform app delivery, especially for headless or low-resource environments. It supports seamless integration with existing Flutter projects through a simple pub add command.

Use cases

  • Cross-platform Flutter app deployment
  • Simplified flutter-pi project setup
  • Automated builds for embedded devices
  • Streamlined distribution of headless apps
  • Testing Flutter apps on Linux and other targets

Key features

  • One-command installation via pub
  • Multi-platform support (Linux, Windows, macOS, Android, iOS)
  • Automated build and packaging workflows
  • Integration with flutter-pi ecosystem
  • Support for headless and embedded deployments

Suitable for

  • Developers targeting embedded systems
  • Teams deploying Flutter apps on Linux
  • Cross-platform app creators using flutter-pi
  • IoT and kiosk application developers
  • DevOps workflows for Flutter-based desktop apps

Considerations

  • Requires flutter-pi environment setup
  • Limited to use with flutter-pi projects
  • May require additional configuration for complex builds
  • Not intended for mobile app store publishing
  • Dependent on GitHub-hosted source code

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutterpi_tool

A tool to make developing & distributing flutter apps for https://github.com/ardera/flutter-pi easier.

📰 News

  • Building & Running apps on meta-flutter yocto distros works now, via the --fs-layout=meta-flutter option to flutterpi_tool devices add, flutterpi_tool build.
  • RISC-V 64-bit is now supported as a target & host platform.
  • The flutter-pi binary to bundle can now be explicitly specified using --flutterpi-binary=...

Setup

Setting up is as simple as:

flutter pub global activate flutterpi_tool

flutterpi_tool is pretty deeply integrated with the official flutter tool, so it's very well possible you encounter errors during this step when using incompatible versions.

If that happens, and flutter pub global activate exits with an error, make sure you're on the latest stable flutter SDK. If you're on an older flutter SDK, you might want to add an explicit dependency constraint to use an older version of flutterpi_tool. E.g. for flutter 3.19 you would use flutterpi_tool 0.3.x:

flutter pub global activate flutterpi_tool ^0.3.0

If you are already using the latest stable flutter SDK, and the command still doesn't work, please open an issue!

Usage

$ flutterpi_tool --help
A tool to make development & distribution of flutter-pi apps easier.

Usage: flutterpi_tool <command> [arguments]

Global options:
-h, --help         Print this usage information.
-d, --device-id    Target device id or name (prefixes allowed).

Other options
    --verbose      Enable verbose logging.

Available commands:

Flutter-Pi Tool
  precache   Populate the flutterpi_tool's cache of binary artifacts.

Project
  build      Builds a flutter-pi asset bundle.
  run        Run your Flutter app on an attached device.

Tools & Devices
  devices    List & manage flutterpi_tool devices.

Run "flutterpi_tool help <command>" for more information about a command.

Examples

1. Adding a device
$ flutterpi_tool devices add pi@pi5
Device "pi5" has been added successfully.
2. Adding a device with an explicit display size of 285x190mm, and a custom device name
$ flutterpi_tool devices add pi@pi5 --display-size=285x190 --id=my-pi
Device "my-pi" has been added successfully.
3. Adding a device that uses meta-flutter
$ flutterpi_tool devices add root@my-yocto-device --fs-layout=meta-flutter
4. Listing devices
$ flutterpi_tool devices
Found 1 wirelessly connected device:
  pi5 (mobile) • pi5 • linux-arm64 • Linux

If you expected another device to be detected, try increasing the time to wait
for connected devices by using the "flutterpi_tool devices list" command with
the "--device-timeout" flag.
...
5. Creating and running an app on a remote device
$ flutter create hello_world && cd hello_world

$ flutterpi_tool run -d pi5
Launching lib/main.dart on pi5 in debug mode...
Building Flutter-Pi bundle...
Installing app on device...
...
6. Running the same app in profile mode
$ flutterpi_tool run -d pi5 --profile

Categories

Dependencies

Dependency list 11 items

Source repository

Projects using this package

No data available yet.