Stack

Stack

The Stack Widget allows you to visually stack items on top of each other, providing a flexible and layered approach to layout and design within your application.

Test in Kitchen Sink (opens in a new tab)

Properties

PropertyTypeDescription
childrenarrayList of widgets
stylesobjectSee properties

styles

PropertyTypeDescription
alignChildrenstringHow to align the children within the stack such that their alignment points will be the same (default is topStart). Each child can override this with alignment property. topLeft, topCenter, topRight, centerLeft, center, centerRight, bottomLeft, bottomCenter, bottomRight
enableSplashFeedbackbooleanToggles splash effect feedback for the widget when true.
splashColorstringDefines the color of the splash effect when enableSplashFeedback is true.
splashDurationintegerThis is the duration it takes to fill the widget surface with the splashColor.The duration in ms when tap and release on the widget.
splashFadeDurationintegerThe duration it takes to fade out once tapped. Since a typical tap starts and ends immdiately, this splashFadeDuration executes almost at the same time as the splashDuration, so ideally it should be equal or longer than splashDuration to see the entire effect.
unconfirmedSplashDurationintegerThis happens when the user tap and hold (not yet released). It is called unconfirmed since the tap will be cancelled if the user moves out of the tap area and release. Usually this should be longer (around 1 secs) to signify that the user has not confirmed the tap.