centered static method
Stack
centered({
- Key? key,
- AlignmentGeometry alignment = Alignment.center,
- TextDirection? textDirection,
- StackFit fit = StackFit.loose,
- Clip clipBehavior = Clip.hardEdge,
- 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,
);
}