positionFixed method

Widget positionFixed({
  1. double? top,
  2. double? right,
  3. double? bottom,
  4. double? left,
  5. double? width,
  6. double? height,
})

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(),
  );
}