
4)Learning diary for Flutter about problem
发布日期:2021-05-08 17:48:39
浏览次数:18
分类:精选文章
本文共 810 字,大约阅读时间需要 2 分钟。
These days, I troubled by the problem about Flutter Class not found.
Today I seen a example from flutter sdk.
I found that creating FlutterView didn't use the Flutter Class
So, I tried this method to create FlutterView Successful
I think the new version of sdk was not have Flutter Class already
protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (flutterEngine == null) { flutterEngine = new FlutterEngine(this, null); flutterEngine.getDartExecutor().executeDartEntrypoint( DartExecutor.DartEntrypoint.createDefault() ); } FlutterView flutterView=findViewById(R.id.fv); flutterView.attachToFlutterEngine(flutterEngine); }
发表评论
最新留言
感谢大佬
[***.8.128.20]2025年04月01日 17时23分53秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
聊聊我的五一小假期
2021-05-08
数据库三个级别封锁协议
2021-05-08
ACM/NCPC2016 C Card Hand Sorting(upc 3028)
2021-05-08
ubuntu学习笔记-常用文件、命令以及作用(hosts、vim、ssh)
2021-05-08
SLAM学习笔记-求解视觉SLAM问题
2021-05-08
程序员应该知道的97件事
2021-05-08
create-react-app路由的实现原理
2021-05-08
openstack安装(九)网络服务的安装--控制节点
2021-05-08
shell编程(六)语言编码规范之(变量)
2021-05-08
vimscript学习笔记(二)预备知识
2021-05-08
Android数据库
2021-05-08
HTML基础,块级元素/行内元素/行内块元素辨析【2分钟掌握】
2021-05-08
STM8 GPIO模式
2021-05-08
23种设计模式一:单例模式
2021-05-08
Qt中的析构函数
2021-05-08
三层框架+sql server数据库 实战教学-徐新帅-专题视频课程
2021-05-08
【单片机开发】智能小车工程(经验总结)
2021-05-08
【单片机开发】基于stm32的掌上游戏机设计 (项目规划)
2021-05-08
C++&&STL
2021-05-08