positionFixed method
fixed -->gt; 固定定位(在Stack中相对于Stack容器)
Implementation
Widget positionFixed({
double? top,
double? right,
double? bottom,
double? left,
double? width,
double? height,
}) {
return Positioned(
top: top,
right: right,
bottom: bottom,
left: left,
width: width,
height: height,
child: build(),
);
}