I am using autoscale_tabbarview and The problem I am having here is that AutoScaleTabBarView doesn't refresh the height when the widget inside changes. It only refresh the height when active tabbar changed. In the first photo there is a circular indicator in the beginning then the outcome is displayed on screen, but height doesn't change like in the first picture.

The first image when output of json is stated after the circular. indicator is dissapeared

The photo when active tabbarview is changed

AutoScaleTabBarView(
                        controller: tabController,
                        children: [
                          Text(widget.hospitalDescription),
                          Column(children: [
                            DoctorsByHospital(
                                hospitalName: widget.hospitalName,
                                gqlDocument: doctorFirstGraphQL),
                            DoctorsByHospital(
                                hospitalName: widget.hospitalName,
                                gqlDocument: doctorSecondGraphQL)
                          ]),
                          Center(
                            child: Column(
                              mainAxisAlignment: MainAxisAlignment.center,
                              children: [
                                CarouselSlider.builder(
                                    itemCount: widget.urls.length,
                                    options: CarouselOptions(
                                        //viewportFraction: 1,
                                        //autoPlay: true,
                                        enableInfiniteScroll: false,
                                        //pageSnapping: false,
                                        enlargeCenterPage: true,
                                        enlargeStrategy:
                                            CenterPageEnlargeStrategy.height,
                                        //reverse: true,
                                        //autoPlayInterval:
                                        //const Duration(seconds: 2),
                                        height: 400,
                                        onPageChanged: (index, reason) =>
                                            setState(
                                                (() => activeIndex = index))),
                                    itemBuilder: (context, index, realIndex) {
                                      final urlImage =
                                          "https://admin.medicte.ca${widget.urls[index]["url"]}";
                                      return buildImage(urlImage, index);
                                    }),
                                const SizedBox(
                                  height: 20,
                                ),
                                AnimatedSmoothIndicator(
                                    activeIndex: activeIndex,
                                    count: widget.urls.length)
                              ],
                            ),
                          ),
                        ],
                      ),