FlutterEasyMessage class

Inheritance

Constructors

FlutterEasyMessage({Widget messageChild, @required Duration duration, Duration showDuration, bool shouldShow = false, Duration hideDuration, Curve curve = Curves.linear, Curve reverseCurve = Curves.linear, EasyShowOrHideStyle showAnimationStyle, EasyShowOrHideStyle hideAnimationStyle, EasyAnimationDirection showAnimaitonDirection = EasyAnimationDirection.ltr, EasyAnimationDirection hideAnimaitonDirection = EasyAnimationDirection.btt})

Properties

curve Curve
进入的时候的规则,默认是Curves.linear https://api.flutter.dev/flutter/animation/Curves-class.html
final
defaultAnimation EasyAnimaiton
read / write
duration Duration
动画停留时间展示时间默认 1000ms
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
hideAnimaitonDirection EasyAnimationDirection
动画隐藏时候的方向,默认是EasyAnimaitonDirection.btt
final
hideAnimationStyle EasyShowOrHideStyle
动画消失类别 默认是EasyShowOrHideStyle.defaultStyle
final
hideDuration Duration
隐藏动画时间 默认 300ms
final
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
messageChild Widget
展示 动画的部件
final
reverseCurve Curve
返回时候 规则,默认是https://api.flutter.dev/flutter/animation/Curves-class.html
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shouldShow bool
是否展示动画 第一次出现不展示不传值
final
showAnimaitonDirection EasyAnimationDirection
动画出现时候的方向,默认是EasyAnimaitonDirection.ltr
final
showAnimationStyle EasyShowOrHideStyle
动画出现类别 默认是EasyShowOrHideStyle.defaultStyle
final
showDuration Duration
展示动画时间 默认 300ms
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
getAnimation(EasyShowOrHideStyle animationStyle) EasyAnimaiton
根据类型获取到处理动画的类
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
inherited
toStringDeep({String prefixLineOne = '', String prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited

Static Properties

show bool
read / write