Stack constructor

  1. {Key key,
  2. AlignmentGeometry alignment: AlignmentDirectional.topStart,
  3. TextDirection textDirection,
  4. StackFit fit: StackFit.loose,
  5. Overflow overflow: Overflow.clip,
  6. List<Widget> children: const []}

Creates a stack layout widget.

By default, the non-positioned children of the stack are aligned by their top left corners.


  Key key,
  this.alignment = AlignmentDirectional.topStart,
  this.textDirection, = StackFit.loose,
  this.overflow = Overflow.clip,
  List<Widget> children = const <Widget>[],
}) : super(key: key, children: children);