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