我刚刚用这个函数更新了 firebase 函数npm i firebase-functions@latest,并更新了npm install -g firebase-tools。突然之间,我无法在 部署我的所有功能firebase deploy --only functions。我遇到了所有这些错误:
Run Code Online (Sandbox Code Playgroud)Build failed: npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: firebase-functions-test@0.2.3 npm ERR! Found: firebase-functions@4.0.0-rc.0 npm ERR! node_modules/firebase-functions npm ERR! firebase-functions@"^4.0.0-rc.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer firebase-functions@">=2.0.0" from firebase-functions-test@0.2.3 npm ERR! node_modules/firebase-functions-test npm ERR! dev firebase-functions-test@"^0.2.0" from the root project npm ERR! npm ERR! …
我目前是 GetX 的新手。我知道 Flutter 中的 showDialog() 方法。但是,我想要实现的是使用下面附加的模板图像从 Get.defaultDialog() 派生的自定义对话框。在此文档链接中,我知道有一个名为“content”的变量,我们可以用 Get.defaultDialog() 中的小部件替换它。
有谁知道这是什么意思?使用这个“内容”是否可以替换 Get.defaultDialog() 模板布局的整个小部件,或者我必须做些什么才能实现它?欢迎任何提示和技巧。谢谢。