IndexedWidget

This widget motivated by IndexedWidget in Flutter.

A Stack that shows a single child from a list of children.

The displayed child is the one with the given index. The stack is always as big as the largest child.

If value is null, then nothing is displayed.

See: https://api.flutter.dev/flutter/widgets/IndexedWidget-class.html

Props

index

Value: number(default: 0)

alignment

Value: Alignment(default: Alignment.topLeft)

clipped

Value: boolean(default: true)

sizing

Value: StackFit(default: StackFit.loose)

children

Value: Widget[]

Examples

Basic