Stack places the children widgets in order with the first child being at the bottom and the last child being at the top . If we want to reorder the children’s widget, it is required to rebuild the stack in the new order. By default, the first widget of each stack has the maximum size compared to other widgets.