简体   繁体   English

Flutter 如何在一个页面上添加多个页面

[英]Flutter How to add multiple pages on one page

在此处输入图像描述

Hello and thank you in advance.. I am new to flutter and i want to make screen which i shown u.... Just look at the picture..i marked red color in that pic i have circle avater and when i tap on each i need to show there data on same page...no need to navigate to another screen.... Show that data on same page...!你好,提前谢谢你..我是 flutter 的新手,我想制作我展示给你的屏幕..看看图片..我在那张照片中标记了红色我有圆形头像,当我点击每个我都需要在同一页面上显示数据......无需导航到另一个屏幕......在同一页面上显示该数据......! Plz help me provide me if there code u have如果你有代码,请帮我提供

Something like this will work, you're basically creating your widget tree in a declarative way in flutter, the column will allow you to stack two separate widgets (your list and your grid).这样的事情会起作用,您基本上是在 flutter 中以声明性方式创建小部件树,该列将允许您堆叠两个单独的小部件(您的列表和网格)。 I recommend going through a few tutorials (starting here: https://flutter.dev/docs/get-started/codelab )on building an app, flutter comes really easy, then watch all the videos created by the flutter team on the different widgets.我建议阅读一些关于构建应用程序的教程(从这里开始: https://flutter.dev/docs/get-started/codelab ),flutter 非常简单,然后观看 Z5ACEBC4CB70DDBB074B0AC76AAB176 团队创建的所有视频小部件。 Everything is a widget and you will use each kind of widget to build your ui.一切都是小部件,您将使用每种小部件来构建您的用户界面。

  @override
  Widget build(BuildContext context) {
    return Stack(children: [
      Positioned(
          top: 20,
          child: Column(
            children: [
              ListView(
                children: [/*circle images*/],
              ),
              GridView.count(
                crossAxisCount: 10,
                children: [/*profile images*/],
              )
            ],
          ))
    ]);
  }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将snackbar从一页调用到多页 - flutter - How to call snackbar from one page to multiple pages - flutter 如何 go 在 flutter 中使用 page_transition 在一次背压中返回多个页面 - How to go back multiple pages in one back press with page_transition in flutter 如何通过单击 Flutter 页面中的按钮导航到 BottomNavigationBar 的页面之一? - How to navigate to one of the pages of BottomNavigationBar by clicking on a button present in the page in Flutter? 如何在一个 slider 上添加多个滑块? #扑 - how to add multiple sliders on one slider? #Flutter 是否可以在一个应用程序中制作多个页面? - Is possible to make Multiple flutter pages in one app? 如何在Flutter的Inkwell小部件中的一行中添加多个按钮 - How to add multiple button in one row inside Inkwell widget in flutter 如何在 flutter bloc 模式中在一肘内添加多个 state? - How to add multiple state in one cubit in flutter bloc pattern? 如何在 flutter 中一次在多个 Container 中添加保证金 - how to add margin in multiple Container at one time in flutter 如何将变量从多页传递到一页颤动? - How do i pass variable from multiples pages to one page flutter? flutter中如何通过多页传递文本和图像并在最后一页预览? - How to pass text and images through multiple pages and preview in the final page in flutter?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM