Flutter 有没有一种方法可以用不同大小的子窗口小部件实现gridview?

Flutter 有没有一种方法可以用不同大小的子窗口小部件实现gridview?,flutter,flutter-layout,photo-gallery,Flutter,Flutter Layout,Photo Gallery,我正在从Flatter开发一个应用程序屏幕,在设计这个设计和循环数据库中的数据时遇到了问题。有没有人在《颤栗》中创造了这样的设计?请给我一个建议 非常感谢您。你救了我一天。我很高兴,我能帮助你:) StaggeredGridView.countBuilder( crossAxisCount: 3, itemCount: 16, itemBuilder: (BuildContext context, int index) => Container(

我正在从Flatter开发一个应用程序屏幕,在设计这个设计和循环数据库中的数据时遇到了问题。有没有人在《颤栗》中创造了这样的设计?请给我一个建议


非常感谢您。你救了我一天。我很高兴,我能帮助你:)
    StaggeredGridView.countBuilder(
      crossAxisCount: 3,
      itemCount: 16,
      itemBuilder: (BuildContext context, int index) => Container(
          color: Colors.green,
          child: Text('$index'),//your photo in place of this child
),
      staggeredTileBuilder: (int index) =>StaggeredTile.count(index%7==0?2:1,index%7==0?2:1,),
      mainAxisSpacing: 8.0,
      crossAxisSpacing: 8.0,
    )