Step into the topic of the Flutter GridView using Offstage or Visibility

The diagram below the Gridview

The interface is displayed

As shown above, the interface is missing 5 data and the location is occupied. Then you can check to see if the control is not hidden. You can use Offstage or Visibility alone to hide the control. Doubt is a GridView problem, but it’s not easy to test this one. So Offstage or Visibility has no background to set. Just look at the Offstage and Visibility implementation.

Offstage

Visibility

It’s all Widget implementations, that is, controls. In the GridView, children add controls, and Offstage and Visibility are added as controls. So at the end of the screen is blank