在flutter移动应用程序Webview中使用npm软件包 [英] Use npm packages in flutter mobile app webview

查看:283
本文介绍了在flutter移动应用程序Webview中使用npm软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Flutter移动应用程序.我想使用一个基于web3.js的npm软件包,并提供一些额外的自定义功能.我知道在flart dart中不会编译为js.我也玩过接受uri的webview插件.我的一些同伴争辩说,使用webview可以使用npm包.我决定尝试一下,但是我错过了切入点,因为我知道webview插件接受URI,而且我不知道如何调整该参数以使用npm包,因此,有关在flutter移动应用程序中使用npm的任何类型的帮助都非常感谢?/p>

I am working on flutter mobile app. I want to use a npm package that is built on top of web3.js and provide some extra custom functionalities. I know in flutter dart is not compiled to js. I have also played with webview plugin that accepts uri. Some of my mates were arguing that using webview we might can use the npm package. I decided to try that but I missing the entry point as I know that webview plugin accepts URI and I don't know how to tweak that to use npm package so any type of help regarding using npm in flutter mobile app is much appreciated?

推荐答案

使用"FLUTTER NODE"或"FLUTTER CLI"之类的软件包可能会有所帮助.另外,Flutter拥有自己的酒吧"web3dart"和"etherium",如果您对区块链有一定的兴趣,它们可能会对您有所帮助!

Use of packages like "FLUTTER NODE" or "FLUTTER CLI" may help with it. Also Flutter has its own pub named "web3dart" and "etherium" which might help you if you have an inclination towards blockchain!

这篇关于在flutter移动应用程序Webview中使用npm软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆