AdaptiveButton.raised constructor

AdaptiveButton.raised(
  1. {Key? key,
  2. required Widget child,
  3. VoidCallback? onLongPress,
  4. ValueChanged<bool>? onHighlightChanged,
  5. Color? focusColor,
  6. Color? hoverColor,
  7. Color? highlightColor,
  8. Color? splashColor,
  9. double elevation = 2.0,
  10. double focusElevation = 4.0,
  11. double hoverElevation = 4.0,
  12. double highlightElevation = 8.0,
  13. double disabledElevation = 0.0,
  14. EdgeInsetsGeometry padding = EdgeInsets.zero,
  15. ShapeBorder shape = const RoundedRectangleBorder(),
  16. Duration animationDuration = kThemeChangeDuration,
  17. Clip clipBehavior = Clip.none,
  18. FocusNode? focusNode,
  19. bool autofocus = false,
  20. MaterialTapTargetSize? materialTapTargetSize,
  21. VoidCallback? onPressed,
  22. Color? color,
  23. ButtonTextTheme? textTheme,
  24. Color? buttonColor,
  25. Color? textColor,
  26. Color? disabledTextColor,
  27. Color? disabledColor,
  28. Brightness? colorBrightness,
  29. BorderRadius? borderRadius,
  30. Widget? icon,
  31. Widget? label}
)

Implementation

AdaptiveButton.raised({
  Key? key,
  required this.child,
  this.onLongPress,
  this.onHighlightChanged,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.splashColor,
  this.elevation = 2.0,
  this.focusElevation = 4.0,
  this.hoverElevation = 4.0,
  this.highlightElevation = 8.0,
  this.disabledElevation = 0.0,
  this.padding = EdgeInsets.zero,
  this.shape = const RoundedRectangleBorder(),
  this.animationDuration = kThemeChangeDuration,
  this.clipBehavior = Clip.none,
  this.focusNode,
  this.autofocus = false,
  this.materialTapTargetSize,
  this.onPressed,
  this.color,
  this.textTheme,
  this.buttonColor,
  this.textColor,
  this.disabledTextColor,
  this.disabledColor,
  this.colorBrightness,
  this.borderRadius,
  this.icon,
  this.label,
})  : _raised = true,
      _icon = false,
      super(key: key);