FlutterWebButton.raiseText constructor

FlutterWebButton.raiseText(
  1. String? text, {
  2. Key? key,
  3. required VoidCallback? onPressed,
  4. required FlutterWebButtonOptions? flutterWebButtonOptions,
  5. Duration? animationDuration,
  6. Color? textAnimatedColor,
  7. double? moveDistanceX = 0,
  8. double? moveDistanceY = -4,
})

Animation that bumps the text up.

Implementation

FlutterWebButton.raiseText(
  this.text, {
  Key? key,
  required this.onPressed,
  required this.flutterWebButtonOptions,
  this.animationDuration,
  this.textAnimatedColor,

  /// This animation only moves in one direction. (The bigger value is chosen)
  this.moveDistanceX = 0,
  this.moveDistanceY = -4,
})  : _buttonType = FlutterWebButtonList.raiseText,
      super(key: key);