Can Node.JS integrate inside Flutter mobile application?

删除回忆录丶 提交于 2021-01-28 20:26:27

问题


I created a mobile application with flutter in front end and back end with node.js but I want it to use node js in offline mode in another meaning I want host this node inside the mobile. can I?


回答1:


No.

First, you'd need NodeJS itself built for you mobile platform. Only then can you even consider running the node application you've written.

Flutter is Dart and NodeJS is well, JS. You can't put them together. But if you are building a node app that builds into a static js and html, may be you can put it in a webview, which does not seem to be the case here.

You are asking to run server side code on the client itself and offline too. If the application can really be offline, I think you're better off without a backend and store everything static within the flutter app itself.



来源:https://stackoverflow.com/questions/58366522/can-node-js-integrate-inside-flutter-mobile-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!