📜  flutter sliver grid - 不管是什么代码示例

📅  最后修改于: 2022-03-11 15:00:47.281000             🧑  作者: Mango

代码示例2
//Shohel Rana Shanto
         SliverGrid(
           
           delegate: SliverChildBuilderDelegate(
        
           (context,index){
             
             return Card(
               color: Colors.green[100*(index%9+1)],
               child: ListTile(title: Text("shohel$index"),),
             );
           },
           childCount: 100,
         ),
         gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 4),
         ),