[英]How To: Add flutter screen from one flutter app to another?
I See this: Add different routes/screens to Flutter app我看到了: 向 Flutter 应用程序添加不同的路线/屏幕
but not the same thing.但不是一回事。
So.所以。 I have several Flutter "TEMPLATE" apps, not real code, just the views not hooked up to the backend.
我有几个 Flutter“模板”应用程序,不是真正的代码,只是视图没有连接到后端。 I am using Flutter Template A as the base with its screens.
我使用 Flutter 模板 A 作为其屏幕的基础。 Now I want to grab some Screens from Flutter Template B and Add/Import them into Flutter Template A Again, I want to grab some Screens from Flutter Template C and Add/Import them into Flutter Template A
Now I want to grab some Screens from Flutter Template B and Add/Import them into Flutter Template A Again, I want to grab some Screens from Flutter Template C and Add/Import them into Flutter Template A
I am new to Flutter - but have over 35 development experiences in a broad range of languages.我是 Flutter 的新手——但我拥有超过 35 种语言的开发经验。
Which files needed to move "A Screen" over and add to the router?哪些文件需要移动“A Screen”并添加到路由器?
If anyone has done this, please help.如果有人这样做过,请帮忙。
It needs what it needs.它需要它需要的东西。 There are view, model, and controller classes, perhaps all in one file, or spread out across multiple directories.
有视图,model 和 controller 类,可能都在一个文件中,或者分布在多个目录中。 So many ways of doing it that your question is unanswerable without looking at the code.
这样做的方法太多了,如果不看代码,你的问题就无法回答。 If you got these "templates" from a vendor, hopefully the vendor documented some of that.
如果您从供应商处获得这些“模板”,希望供应商记录其中的一些内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.