The interesting part of this task is that we will have to work a lot on the widget’s actual height. To view that height, we will use LayoutBuilder . LayoutBuilder gives us access to view constraints so that we can use the widget’s height.

Another thing worth mentioning is that we want the HeightCard widget to be the one which stores actual height. To cope with that, we will pass the height to the HeightPicker and listen to changes with ValueChanged<int> . This way we won’t get lost on where is the actual height stored.

Placement of HeightPicker: