Decoration
2020-02-05 本文已影响0人
翱翔的土豆
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)
- color: Color
- image: DecorationImage
- border: BoxBorder
- borderRadius: BorderRadiusGeometry
- boxShadow: List<BoxShadow>
- gradient: Gradient
- backgroundBlendMode: BlendMode
- shape: BoxShape
需要补充代码
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, })
- lightColor: Color
- darkColor: Color
- textColor: Color
- style: FlutterLogoStyle
- margin: EdgeInsets
需要补充代码
4. ShapeDecoration
ShapeDecoration({this.color, this.image, this.gradient, this.shadows, @required this.shape, })
- color: Color
- image: DecorationImage
- gradient: Gradient
- shadows: List<BoxShadow>
- shape: ShapeBorder
需要补充代码