BaseButtonText constructor

const BaseButtonText({
  1. Key? key,
  2. required String text,
  3. double textFontSize = 16,
  4. Color? textColor,
  5. Color? hoverTextColor,
  6. Color? activeTextColor,
  7. String? icon,
  8. double iconSize = 18,
  9. bool isLoading = false,
  10. bool isActive = false,
  11. Widget? child,
  12. Widget builder({
    1. Color backgroundColor,
    2. Animation? borderAnimation,
    3. bool isHovering,
    4. Animation? textAnimation,
    5. Color textColor,
    6. AnimationController textController,
    })?,
  13. void onPressed()?,
})

Implementation

const BaseButtonText({
  super.key,

  // general
  required this.text,
  this.textFontSize = 16,
  this.textColor,
  this.hoverTextColor,
  this.activeTextColor,
  this.icon,
  this.iconSize = 18,

  // predicates
  this.isLoading = false,
  this.isActive = false,

  // methods
  this.child,
  this.builder,
  this.onPressed,
});