FlutterWebButton.backgroundFill constructor

FlutterWebButton.backgroundFill(
  1. String? text, {
  2. Key? key,
  3. required VoidCallback? onPressed,
  4. required FlutterWebButtonOptions? flutterWebButtonOptions,
  5. Color? textAnimatedColor,
  6. Color? backgroundAnimatedColor,
  7. Duration? animationDuration,
})

Animated a background fill from left to right. FlutterWebButtonOptions.buttonRadius does not work for this animation.

Implementation

FlutterWebButton.backgroundFill(
  this.text, {
  Key? key,
  required this.onPressed,
  required this.flutterWebButtonOptions,
  this.textAnimatedColor,
  this.backgroundAnimatedColor,
  this.animationDuration,
})  : _buttonType = FlutterWebButtonList.backgroundFill,
      super(key: key);