您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

24 行
590 B

using Unity.UIWidgets.foundation;
namespace Unity.UIWidgets.widgets {
public class Spacer : StatelessWidget {
public Spacer(
Key key = null,
int? flex = 1)
: base(key: key) {
D.assert(flex != null);
D.assert(flex > 0);
this.flex = flex.Value;
}
public readonly int flex;
public override Widget build(BuildContext context) {
return new Expanded(
flex: flex,
child: SizedBox.shrink()
);
}
}
}