centered static method

Stack centered({
  1. Key? key,
  2. AlignmentGeometry alignment = Alignment.center,
  3. TextDirection? textDirection,
  4. StackFit fit = StackFit.loose,
  5. Clip clipBehavior = Clip.hardEdge,
  6. List<Widget> children = const <Widget>[],
})

Creates a centered stack

Implementation

static Stack centered({
  Key? key,
  AlignmentGeometry alignment = Alignment.center,
  TextDirection? textDirection,
  StackFit fit = StackFit.loose,
  Clip clipBehavior = Clip.hardEdge,
  List<Widget> children = const <Widget>[],
}) {
  return Stack(
    key: key,
    alignment: alignment,
    textDirection: textDirection,
    fit: fit,
    clipBehavior: clipBehavior,
    children: children,
  );
}