简体   繁体   English

你好。 我有一个 flutter 应用程序,我还有另一个模板? 如何从模板应用程序中获取页面并将其添加到我现有的页面中?

[英]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.

相关问题 你好,我有一个问题。 如何使图像将我带到 Internet 上的链接? (扑) - Hello, I have a question. How can I make an image take me to a link on the Internet? (Flutter) 如何从我的应用程序中打开另一个应用程序的特定页面? - How can I open a specific page of another app from my app in flutter? 我有一个构建我的颤振应用程序的道具 - I have a prop with building my flutter app 即使应用程序已经被扑灭,我怎么能让我的应用程序正常工作? - How can I have my app working even when the app has been terminated in flutter? 如何启动连接我在 dart 中编码的服务的 Flutter 应用程序 - How Can I Launch My Flutter App that connects a serve I have coded in dart 我有一个问题,将我的 flutter 应用程序迁移到 null_safety - I have one issue from migrating my flutter app to null_safety 如何在我的 Flutter 应用程序中添加启动画面? - How can I add splash screen I my flutter app? 我的 flutter 应用程序中出现此错误,您能告诉我如何解决吗? - I have this error in my flutter app, can you tell how to fix it? 当我想在 Flutter 中调试我的应用程序时遇到问题 - I have problem when I want debug my app in Flutter 如何在 flutter 上为我的电子商务应用添加购物车页面? - How do i add cart page for my ecommerce app on flutter?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM