Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blendthink/pigeon_demo
Flutter で pigeon ( Kotlin, Swift ) の使用例
https://github.com/blendthink/pigeon_demo
Last synced: 20 days ago
JSON representation
Flutter で pigeon ( Kotlin, Swift ) の使用例
- Host: GitHub
- URL: https://github.com/blendthink/pigeon_demo
- Owner: blendthink
- Created: 2023-04-18T11:05:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-23T23:37:31.000Z (over 1 year ago)
- Last Synced: 2024-05-01T16:18:34.993Z (8 months ago)
- Language: Dart
- Size: 3.5 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 概要
[pigeon] で Kotlin, Swift のコードを生成して、Android, iOS とやりとりするサンプルプロジェクト
## 挙動
### Android
https://user-images.githubusercontent.com/32213113/232854003-db257827-a066-4aef-9b25-de3fa089b5cf.mp4
### iOS
https://user-images.githubusercontent.com/32213113/232854712-b64d5d9a-41a1-41c8-a0b1-b03e705a76e5.mp4
## コマンド集
### pigeon
```shell
mkdir -p lib/gen
fvm flutter pub run pigeon \
--input pigeons/message.dart \
--dart_out lib/gen/pigeon.dart \
--swift_out ios/Runner/Pigeon.swift \
--kotlin_out android/app/src/main/kotlin/dev/blendthink/pigeon_demo/Pigeon.kt \
--kotlin_package "dev.blendthink.pigeon_demo"
```### build_runner
```shell
fvm flutter pub run build_runner build -d
```[pigeon]: https://pub.dev/packages/pigeon