Giter VIP home page Giter VIP logo

Comments (4)

OOMROO avatar OOMROO commented on July 2, 2024

网络请求是放在Flutter层还是JS层,如果在Flutter 层如何给JS(页面)配置数据?

from mxflutter.

HansRove avatar HansRove commented on July 2, 2024

JS能否作为flutter启动后的第一个page ?

from mxflutter.

mxflutter avatar mxflutter commented on July 2, 2024

如题, 如果可以如何再setState页面

MXFlutter 目前放出的是技术预览版本,如果要使用,必须非常了解Flutter,JS等运行原理, 要实现从网络获取数据,目前可以使用JSCode和原生通讯能力,MXFlutter将会有一个大版本更新,完善了此问题,敬请期待。

from mxflutter.

mxflutter avatar mxflutter commented on July 2, 2024

如题, 如果可以如何再setState页面
JS能否作为flutter启动后的第一个page ?

0.1.0版本已支持网络库dio

JS能否作为flutter启动后的第一个page ,可以搜索以下代码,打开注释,不过Flutter引擎和JS引擎有一定启动时间,有一段时间白屏,可能需要在Native侧做个启动页面,缓解白屏时间。
// 2.MXJSPage: 直接打开MXFlutter写的页面,TODO:JS引擎启动需要时间,这里会展示菊花,优化中。。。
//NSString *route = @"MXJSPage";

from mxflutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.