您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
28 行
716 B
28 行
716 B
using UIWidgets.foundation;
|
|
using UIWidgets.ui;
|
|
|
|
namespace UIWidgets.painting {
|
|
public abstract class Decoration {
|
|
protected Decoration() {
|
|
}
|
|
|
|
public virtual EdgeInsets padding {
|
|
get { return EdgeInsets.zero; }
|
|
}
|
|
|
|
public abstract BoxPainter createBoxPainter(VoidCallback onChanged = null);
|
|
}
|
|
|
|
public abstract class BoxPainter {
|
|
protected BoxPainter(VoidCallback onChanged = null) {
|
|
this.onChanged = onChanged;
|
|
}
|
|
|
|
public readonly VoidCallback onChanged;
|
|
|
|
public abstract void paint(Canvas canvas, Offset offset, ImageConfiguration configuration);
|
|
|
|
public virtual void dispose() {
|
|
}
|
|
}
|
|
}
|