alibaba/flutter_boost

flutterBoost use notes

Flutter-Native new generation of hybrid solutions. FlutterBoost Flutter is a plugin that can easily provide Flutter hybrid integrated solutions for existing native applications. FlutterBoost idea is to use as the Flutter like Webview. In existing applications while managing Native pages and Flutter page is not easy. FlutterBoost help you deal with mapping and jump pages, you only care about the page name and parameters can (usually can be URL).

github link: https://github.com/alibaba/flutter_boost

Andrews while interacting with native, pass parameters, jump page, performance in terms of business needs there ios consumption is relatively large, there will be Ben collapse, so replace flutterboost framework, but for now flutterboost framework document like a general, a lot needs its own exploration, so that the access speed is slow, where the next record throat

 

First, a first throat, the official website did not update the document, I once thought it was where I imported wrong, I also went to github found examples of other people access, the found documents related to the same, then I carefully to find the next source in class, really is not the same, this time I was determined that the document is not updated

So to persuade users to download the latest branch of the pack, the latest is 1.9, then initialize what is consistent with the demo, do not feel they can change the parameters, because I'm afraid you cry (already cried / (¨Ò o ¨Ò) / ~ ~)

  Then set the main interactive listening only to see the 1.5 branch, the latest branch did not see, so that time can not find hope to discover this hidden story

  Remember the release of children

  So Easy? I thought it was so simple, it must write down is not so simple, you can love, and do not have anything else to see. . .

You will find an integrated and well, but the callback interactive monitor is not set, suggesting you are not registered, your own fiddle for a long time, is not, then add the fish asked the group of technical personnel, communication for a long time and found that less a quote

 

Then there is a need to pay attention, that is, when the inside of the jump, the trigger is openPage, then that need to be addressed in the initialization routing

 

 

 

  上面进去后startActivity的时候你会发现进入异常捕捉去了,一看提示说没有注册NewFlutterBoostActivity类,我就奇怪了,我继承NewFlutterBoostActivity,注册了 FlutterBoostActivity ,但是好像库里面有什么骚操作,硬要我在注册这个NewFlutterBoostActivity类,我添加一下才正常

 这个要你项目另外引用,不然会有惊喜的,这个剧情是不是很带劲,接下来虎躯一震,气压八方,就可以开始愉快的交互了,后期肯定会完善的,但是目前还是贼坑的

Guess you like

Origin www.cnblogs.com/LiuZhen/p/11663261.html