I'm trying to display the data using `GridView.count` but it is not displaying all items. here is my code

```

class CategoriesBody extends StatefulWidget {
  const CategoriesBody({Key? key}) : super(key: key);

  @override
  _CategoriesBodyState createState() => _CategoriesBodyState();
}

class _CategoriesBodyState extends State<CategoriesBody> {

  Widget header() {
    return Center(
      child: SizedBox(
          height: MediaQuery.of(context).size.height * 0.2,
          width: MediaQuery.of(context).size.width,
          child: Container(
              color: appThemeColor,
              child: Padding(
                  padding: const EdgeInsets.all(15.0),
                  child: Align(
                      alignment: Alignment.topLeft,
                      child: Column(
                          crossAxisAlignment: CrossAxisAlignment.start,
                          children: [
                            customText(context, "Available", 25.0,
                                FontWeight.w600, Colors.white),
                            customText(context, "Categories", 35.0,
                                FontWeight.w600, Colors.white),
                          ]))))),
    );
  }

  @override
  Widget build(BuildContext context) {
    return SafeArea(
        child: SingleChildScrollView(
            child: objResult == ""
                ? Column(
                    children: [
                      header(),
                      showCircularLoader(context),
                    ],
                  )
                : objResult == "not connected"
                    ? Column(
                        children: [
                          header(),
                          SizedBox30(),
                          noInternetConnection(context)
                        ],
                      )
                    : apiError == "Server down"
                        ? Column(
                            children: [
                              header(),
                              SizedBox30(),
                              serverError(context),
                            ],
                          )
                        : Center(
                            child: Column(
                                mainAxisSize: MainAxisSize.min,
                                children: [
                                header(),

                                //list of all categries
                                SizedBox(
                                    height: MediaQuery.of(context).size.height *
                                        0.97,
                                    child: GridView.count(
                                        crossAxisCount: 2,
                                        scrollDirection: Axis.vertical,
                                        children: List.generate(category.length,
                                            (index) {
                                          return InkWell(
                                              child: customCategoryContainer(
                                                  context,
                                                  "assets/img/cat2.jpg",
                                                  category.length != 0
                                                      ? category[index].title
                                                      : "",
                                                  18.0,
                                                  MediaQuery.of(context)
                                                          .size
                                                          .height *
                                                      0.18,
                                                  MediaQuery.of(context)
                                                          .size
                                                          .height *
                                                      0.18));
                                        }))),

                              ]))));
  }
}

```

api response count is 12, but its displaying 10 items. please help where i'm doing wrong.