stackedWith method

Widget stackedWith(
  1. List<Widget> children, {
  2. AlignmentGeometry alignment = Alignment.topLeft,
  3. StackFit fit = StackFit.loose,
  4. Clip clipBehavior = Clip.hardEdge,
})

Wraps the widget in a Stack with other children

  • alignment: stack alignment (default topLeft)
  • fit: loose or expand

Implementation

Widget stackedWith(
  List<Widget> children, {
  AlignmentGeometry alignment = Alignment.topLeft,
  StackFit fit = StackFit.loose,
  Clip clipBehavior = Clip.hardEdge,
}) {
  return Stack(
    alignment: alignment,
    fit: fit,
    clipBehavior: clipBehavior,
    children: [this, ...children],
  );
}