[英]Hello! I have a flutter app and I have another that’s a template. How can I take a page from the template app and add it to my existing one?
I have a flutter app and a template.我有一个 flutter 应用程序和一个模板。 How can I take a page from the template app and add it to my existing one?
如何从模板应用程序中获取页面并将其添加到我现有的页面中?
For example, the template app has a news tab.例如,模板应用程序有一个新闻选项卡。 I like it's layout and would like to add it to my existing app.
我喜欢它的布局,并想将它添加到我现有的应用程序中。 How can I do this?
我怎样才能做到这一点?
This is how my app structure looks like:这是我的应用程序结构的样子:
Flutter is built on the concept of components where everything (even the app itself, is a widget). Flutter 建立在组件的概念之上,其中一切(甚至应用程序本身都是一个小部件)。
To do this, just look at the widget that describes the page you are trying to merge with yours, then modify it.为此,只需查看描述您尝试与您合并的页面的小部件,然后对其进行修改。
Also this is not really a proper question.这也不是一个正确的问题。 If you need help with any source code, or if you come across bugs, then please use StackOverflow for that.
如果您需要任何源代码的帮助,或者遇到错误,请使用 StackOverflow。 You can paste logs, your source code, etc, into this post, and we (the community) can all help you.
您可以将日志、源代码等粘贴到这篇文章中,我们(社区)都可以为您提供帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.