flutter_godot 0.0.2 copy "flutter_godot: ^0.0.2" to clipboard
flutter_godot: ^0.0.2 copied to clipboard

The flutter_godot plugin can embed Godot games as Widget into Flutter applications and support two-way communication.

flutter_godot #

  • flutter_godot 插件可以将 Godot 游戏作为 Widget 嵌入到 Flutter 应用中, 并支持双向通信.
  • The flutter_godot plugin can embed Godot games as Widget into Flutter applications and support two-way communication.

Pub Version GitHub Repo stars GitHub License

对应版本 #

flutter_godot 插件版本 Godot Engine 版本
0.0.1 4.4.1 Stable
0.0.2 4.4.1 Stable

使用方法 #

  • 在 pubspec.yaml 中声明依赖
dependencies:
  flutter_godot: ^latest
  • 更新依赖
flutter pub get
  • 在代码中导入依赖
import 'package:flutter_godot/flutter_godot.dart';
  • 实现 Flutter 逻辑 main.dart 点击查看完整源码

  • 在 Flutter 项目的 Android 平台工程中创建 Assets 文件夹 (android\app\src\main\assets) 并在其中创建 Godot 工程或将现有 Godot 工程放置在其中. (由于 Godot 官方只提供 Android 平台库, 所以此插件仅支持 Android 平台, 并在其他平台做了兼容处理, 不会导致应用崩溃.)

  • 实现Godot逻辑 main.gd 点击查看完整源码

1
likes
160
points
118
downloads

Publisher

unverified uploader

Weekly Downloads

The flutter_godot plugin can embed Godot games as Widget into Flutter applications and support two-way communication.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_plugin_android_lifecycle, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on flutter_godot