Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Wrap the widget in a Stack widget.
  2. The last widget added to the Stack will be at the top, so add the widget you want to move to the forefront last.
  3. To further control the z-order of the children, use the Positioned widget to specify the exact positioning of each child within the Stack.

Example:

Stack(
  children: [
    Positioned(
      child: // your first widget here
    ),
    Positioned(
      child: // your second widget here
    ),
    Positioned(
      child: // the widget you want to move to the forefront
    ),
  ],
)