美文网首页
Decoration

Decoration

作者: 翱翔的土豆 | 来源:发表于2020-02-05 20:48 被阅读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)
需要补充代码

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, })
需要补充代码

相关文章

网友评论

      本文标题:Decoration

      本文链接:https://www.haomeiwen.com/subject/ewdexhtx.html