abstract class
BoxDecoration extends Decoration
FlutterLogoDecoration extends Decoration
ShapeDecoration extends Decoration
1. BoxDecoration
BoxDecoration({this.color, this.image, this.border, this.borderRadius, this.boxShadow, this.gradient, this.backgroundBlendMode, this.shape = BoxShape.rectangle, })
BoxDecoration scale(double factor)
static BoxDecoration lerp(BoxDecoration a, BoxDecoration b, double t)
需要补充代码
2. FlutterLogoStyle
- markOnly (FlutterLogoDecoration 默认)
- horizontal
- stacked
3. FlutterLogoDecoration
FlutterLogoDecoration({ this.lightColor = const Color(0xFF42A5F5), this.darkColor = const Color(0xFF0D47A1), this.textColor = const Color(0xFF616161), this.style = FlutterLogoStyle.markOnly, this.margin = EdgeInsets.zero, })
需要补充代码
4. ShapeDecoration
ShapeDecoration({this.color, this.image, this.gradient, this.shadows, @required this.shape, })
需要补充代码
网友评论