abstract class (需要补充父类方法)
EdgeInsets extends EdgeInsetsGeometry
EdgeInsetsDirectional extends EdgeInsetsGeometry
1. EdgeInsets
EdgeInsets.fromLTRB(this.left, this.top, this.right, this.bottom)
EdgeInsets.all(double value)
EdgeInsets.only({this.left = 0.0, this.top = 0.0, this.right = 0.0, this.bottom = 0.0})
EdgeInsets.symmetric({double vertical = 0.0, double horizontal = 0.0})
EdgeInsets copyWith({double left, double top, double right, double bottom,})
- left: double
- top: double
- right: double
- bottom: double
1.1 static const
EdgeInsets zero = EdgeInsets.only();
1.2 get
Offset get topLeft => Offset(left, top);
Offset get topRight => Offset(-right, top);
Offset get bottomLeft => Offset(left, -bottom);
Offset get bottomRight => Offset(-right, -bottom);
2. EdgeInsetsDirectional
EdgeInsetsDirectional.fromSTEB(this.start, this.top, this.end, this.bottom);
EdgeInsetsDirectional.only({this.start = 0.0, this.top = 0.0, this.end = 0.0, this.bottom = 0.0,})
- start: double
- top: double
- end: double
- bottom: double
网友评论