positioned method
Creates a widget that controls where a child of a Stack is positioned.
Only two out of the three horizontal values (left
, right
, width
), and
only two out of the three vertical values (top
, bottom
, height
), can be set.
In each case, at least one of the three must be null.
Implementation
Positioned positioned({
double? top,
double? bottom,
double? left,
double? right,
double? height,
double? width,
}) =>
Positioned(
child: this,
top: top,
bottom: bottom,
left: left,
right: right,
height: height,
width: width,
);