您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
31 行
789 B
31 行
789 B
using System;
|
|
using System.Collections.Generic;
|
|
using Unity.UIWidgets.foundation;
|
|
using Unity.UIWidgets.painting;
|
|
using Unity.UIWidgets.service;
|
|
using Unity.UIWidgets.ui;
|
|
using UnityEngine;
|
|
using Brightness = Unity.UIWidgets.ui.Brightness;
|
|
|
|
namespace Unity.UIWidgets.widgets {
|
|
public class Spacer : StatelessWidget {
|
|
|
|
public Spacer(
|
|
Key key = null,
|
|
int flex = 1)
|
|
: base(key: key) {
|
|
this.flex = flex;
|
|
D.assert(flex != null);
|
|
D.assert(flex > 0);
|
|
}
|
|
public readonly int flex;
|
|
|
|
public override Widget build(BuildContext context) {
|
|
return new Expanded(
|
|
flex: flex,
|
|
child: SizedBox.shrink()
|
|
);
|
|
}
|
|
}
|
|
|
|
}
|