In my application, I set crossAxisCount to 7 using GridView, but I see that it draws white lines while drawing boxes on the screen. I tried many methods but could not solve this problem.
GridView.count(
crossAxisCount: 7,
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
padding: EdgeInsets.zero,
children: List.generate(
150,
(index) {
return Container(
color:Colors.black,
child: Center(child: Text("text", style: TextStyle(color: Colors.white))),
);
},
),
);

