Flutter tools for embedded Linux (eLinux)
| Files | Last commit | Last update |
|---|---|---|
| 2 years ago | ||
| 1 year ago | ||
| 4 years ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 3 years ago | ||
| 5 years ago | ||
| 1 year ago | ||
| 5 years ago | ||
| 5 years ago | ||
| 3 years ago | ||
| 5 years ago | ||
| 2 years ago |
Translated by AI, submit an issue feedback
Flutter 用于嵌入式 Linux(eLinux)

这是一个非官方的 Flutter SDK 扩展,用于使用 flutter-embedded-linux 在嵌入式 Linux 设备上构建和调试 Flutter 应用,该扩展是针对 eLinux 的 Flutter 深度集成器。
存储库
- flutter-elinux-plugins: 适用于 eLinux 的 Flutter 插件
- flutter-embedded-linux: Flutter 的 eLinux 集成
- meta-flutter: Flutter 的 eLinux 集成 Yocto 食谱
贡献
欢迎加入本项目。我们非常期待您的贡献和反馈。参见:CONTRIBUTING.md。
功能
- 优化适用于嵌入式系统的 Flutter
- 相比 Linux 桌面版 Flutter 更轻量(不使用 X11 和 GTK)
- 支持 arm64/x64 设备
- 最小化依赖库
- 嵌入式软件开发
- 支持从 x64 到 arm64 的交叉编译
- 安装/卸载/远程目标设备调试
- Flutter 插件支持
- 显示后端
- 键盘、鼠标和触摸输入支持
- 与桌面 Flutter 相当的质量
- 与 Windows 和 GLFW 的 Flutter 桌面 API 兼容
- MethodChannel 和 EventChannel 等 API 与其完全相同
如需了解更多细节,请参阅 flutter-embedded-linux。
插件
在 eLinux 上使用的 Flutter 插件,例如 video_player 和 camera,可在 flutter-elinux-plugins 中找到。
用户文档
包括快速入门指南在内的用户文档可以在 Wiki 中找到。
快速开始
安装 flutter-elinux
$ git clone https://github.com/sony/flutter-elinux.git
$ sudo mv flutter-elinux /opt/
$ export PATH=$PATH:/opt/flutter-elinux/bin
安装所需工具
$ sudo apt install unzip curl clang cmake pkg-config
运行 Flutter 示例应用在 Wayland 组合器上
您需要安装一个 Wayland 组合器,如 Sway 或 Weston,并在启动 Flutter 应用之前运行它。Weston 版本 9 存在一些已知问题,因此建议使用其他组合器,如 Sway。
$ sudo apt install sway
$ sway &
$ flutter-elinux devices
2 connected devices:
eLinux (桌面) • elinux-wayland • flutter-tester • Ubuntu 20.04.2 LTS 5.8.0-63-generic
eLinux (桌面) • elinux-x11 • flutter-tester • Ubuntu 20.04.2 LTS 5.8.0-63-generic
$ flutter-elinux create sample
$ cd sample
$ flutter-elinux run -d elinux-wayland
如果要在 X11 中运行你的 Flutter 应用,将 elinux-wayland 替换为 elinux-x11:
$ flutter-elinux run -d elinux-x11
从 flutter-tizen 分叉而来
这个软件是从 flutter-tizen(以 此版本 分支)派生出来的。特别感谢 flutter-tizen 团队。