Get child's height to carousel slider's height - Flutter

I have a flutter carousel slider with 2 Containers. There is no width or height set to the Containers. So, the width and height of the container are fit to content.

How can I get the height of that container and set it to the carousel slider's height? Because if not we give it height as a hardcoded double, the container is overflowed in other smartphones.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum