搜尋套件、儲存庫與 APP 分類

套件詳情v0.12.0

flutterpi_tool

一個用來簡化 flutter-pi 應用開發與發行的工具。

AndroidiOSmacOSWindowsLinux
近 30 天下載
3210
喜歡數
44
Pub 分數
40

安裝套件

flutter pub add flutterpi_tool

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

flutterpi_tool 是一個用於簡化使用 flutter-pi 在嵌入式與桌面平台建立、測試與部署 Flutter 應用程式的開發與發行工具。它透過自動化跨多個作業系統的設定、建置與封裝流程,提升工作流程效率,支援 Linux、Windows、macOS、Android 與 iOS 等系統。該工具透過自動執行與跨平台應用程式交付相關的重複性任務,顯著提升工作流效率,特別適用於無頭或低資源環境。它可透過簡單的 pub add 命令與現有 Flutter 專案無縫整合。

適用情境

  • 跨平台 Flutter 應用部署
  • 簡化版 flutter-pi 項目設定
  • 嵌入式設備的自動化建構
  • 精簡的無頭應用程式分發
  • 在 Linux 和其他目標上測試 Flutter 應用

主要特色

  • 透過 pub 的單命令安裝
  • 多平台支援(Linux、Windows、macOS、Android、iOS)
  • 自動化建構和打包工作流程
  • 與 flutter-pi 生態系統的整合
  • 支援無頭和嵌入式部署

適合對象

  • 面向嵌入式系統的開發人員
  • 在 Linux 上部署 Flutter 應用的團隊
  • 使用 flutter-pi 的跨平台應用程式創建者
  • 物聯網和自助服務終端應用開發者
  • 適用於基於 Flutter 的桌面應用程式之 DevOps 工作流程

使用建議

  • 需要 flutter-pi 環境設定
  • 僅限用於 flutter-pi 項目
  • 可能需要為複雜構建進行額外設定
  • 不適用於行動應用程式商店發佈
  • 依賴於託管在 GitHub 上的原始碼

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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

所屬分類

依賴

依賴清單 11 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。