module/ui/decoration
library
Functions
-
kdecoration(Color c1, Color c2, {int radius = 0, int borderWidth = 0, Color? borderColor, Color? shadowColor, double dx = 0, double dy = 0, double blurRadius = 0, double spreadRadius = 0})
→ BoxDecoration
-
渐变色背景
c1
颜色
c2
颜色
radius
圆角
borderWidth
边框宽度
borderColor
边框颜色
shadowColor
阴影颜色
dx
阴影x轴偏移量
dy
阴影y轴偏移量
blurRadius
阴影模糊程度
spreadRadius
阴影扩散程度
-
kdecorationBlack(int radius)
→ BoxDecoration
-
白色背景-圆角x
-
kdecorationRadius(Color color, int radius, {int borderWidth = 0, Color? borderColor, Color? shadowColor, double dx = 0, double dy = 0, double blurRadius = 0, double spreadRadius = 0})
→ BoxDecoration
-
圆角边框
color
颜色
radius
圆角
borderWidth
边框宽度
borderColor
边框颜色
shadowColor
阴影颜色
dx
阴影x轴偏移量
dy
阴影y轴偏移量
blurRadius
阴影模糊程度
spreadRadius
阴影扩散程度
-
kdecorationWhite(int radius)
→ BoxDecoration
-
白色背景-圆角x
-
kdecorationWhiteR10()
→ BoxDecoration
-
白色背景-圆角10
-
kdecorationWhiteR12()
→ BoxDecoration
-
白色背景-圆角12
-
kdecorationWhiteR16()
→ BoxDecoration
-
白色背景-圆角16
-
kdecorationWhiteR2()
→ BoxDecoration
-
白色背景-圆角2
-
kdecorationWhiteR4()
→ BoxDecoration
-
白色背景-圆角4
-
kdecorationWhiteR8()
→ BoxDecoration
-
白色背景-圆角8