如何在颤动中将 3 行小部件设置为 3 列

米沙哈尼夫

这是我想要的输出

在此处输入图像描述

这是我的输出

在此处输入图像描述

这是代码

ListView.builder(
            shrinkWrap: true,
            physics: BouncingScrollPhysics(),
            itemBuilder: (context, index) {
              final data = diseaseList[index];
              return     Padding(
              padding: const EdgeInsets.only(right: 25, left: 25, bottom: 15),
              child: FittedBox(
                child: Row(
                  children: [
                    DiseaseCard(
                      sectionName: data.diseaseName,
                      image: data.image,
                    ),
                  ],
                ),
              ),
            );
            
            },
            itemCount: diseaseList.length,
          )

如何在颤动中获得这样的精确输出???

埃蒙·侯赛因·穆纳

尝试这个:

return MaterialApp(
  title: title,
  home: Scaffold(
    appBar: AppBar(
      title: const Text(title),),
    body: GridView.count(
      crossAxisCount: 3,
      children: List.generate(100, (index) {
        return Center(
          child: Text(
            'Item $index',
            style: Theme.of(context).textTheme.headline5,
          ),
        );
      }),
    ),
  ),
);

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在sql server中将3行选择为3列

如何在python中将列分为3列

如何在Lucene FrenchAnalyzer中将最小长度设置为3?

我们如何在 foreach 循环中将行分成 3 列

我如何在Oracle中将3列添加为1

如何在 3 列网格设置中拉伸中间列

如何使用jQuery UI selectMenu小部件在下拉列表中创建3列?

如何在tkinter中使3列网格中显示的两个小部件之间的间距相等?

Symfony 3表单:如何为textarea小部件设置默认值

在Python 3的tkinter中使用循环时,如何为每个小部件设置特定功能?

如何在颤动中将TextFormField提取为可重用的小部件

如何将dataGridView的前3列设置为true

如何在Qt 3中使用小部件插件?

如何在终端中将Python 2.7更新为3

如何使用Tkinter Listbox小部件在Sqlite3表中获得一行?

如何在颤动中使图像适合屏幕的 1/3

如何使用引导行类为卡创建3列

如何在Bootstrap 3中为不同的设备设置不同的列

如何在表格的3列中的2列中将度数转换为弧度?

如何在 3d 中将轴值设置为特定值

如何在终端中将符号链接快捷方式设置为Sublime Text 3?

如何在 D3 Js 中将 y 轴(yDomain)值设置为最大值

如何在Ubuntu 14.04中将python 3设置为默认解释器

如何在Swift 3中将edgeForExtendedLayout设置为none

如何在WING IDE中将python3设置为默认版本

如何在Swift 3中将视图控制器设置为初始屏幕?

如何在Joomla 3.x中将权限设置为隐式拒绝

如何在Python 3中将变量设置为随机整数?

如何在 AWS EMR 中将 Jupyter notebook 设置为 Python3 而不是 Python2.7