FlutterWebButton.textMove constructor

FlutterWebButton.textMove(
  1. String? text, {
  2. Key? key,
  3. required VoidCallback? onPressed,
  4. required FlutterTextOptions? flutterTextOptions,
  5. Duration? animationDuration,
  6. double? moveDistanceX = 0,
  7. double? moveDistanceY = 0,
})

Display text with an animated move in x or y direction.

Implementation

FlutterWebButton.textMove(
  this.text, {
  Key? key,
  required this.onPressed,
  required this.flutterTextOptions,
  this.animationDuration,

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