1 Star 1 Fork 1

GGB/flutter-android-connect

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

flutter_android_connect

我之前一直想实现flutter与原生的交互,但一直没有比较好的资源;

2021.11.20 中午突然收到微信公众号的推送相关的文章 Flutter 中嵌入Android原生View,于是就决定花一点时间试一试;

实现flutter 与 andorid的通讯

对于内容我不做过多的介绍,文章列变讲解得比较细;

需要注意的地方有以下:

1. 在android项目中创建的不是JAVA的文件 而是kt的文件

2. 对于 Any类型判断哪个位置我也不是很熟,于是做了简单的处理

效果图

MIT License Copyright (c) 2021 GGB Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Flutter 中嵌入Android原生View 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者 (2)

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Dart
1
https://gitee.com/ggbhack/flutter-android-connect.git
git@gitee.com:ggbhack/flutter-android-connect.git
ggbhack
flutter-android-connect
flutter-android-connect
master

搜索帮助