I am using the swiper with the height of the container fixed as follows, but I want to make the height value automatically adjust according to the contents inside the swiper.
Container(
    height: 220,
    child: Swiper(
        itemBuilder: (BuildContext context, int index) {
            return Container() //content
        }
    )
)