AButtonWithMenu constructor

const AButtonWithMenu({
  1. Key? key,
  2. String? text,
  3. String? textTitle,
  4. IconData? icon,
  5. bool disabled = false,
  6. bool loading = false,
  7. Color? color,
  8. bool upperCase = true,
  9. Color? borderColor,
  10. double? borderRadius,
  11. double fontSize = 12,
  12. double iconSize = 18,
  13. FontWeight? fontWeight,
  14. double? height,
  15. double? width,
  16. double elevation = 2,
  17. IconData? landingIcon,
  18. Widget? landingImage,
  19. IconData? trailingIcon,
  20. EdgeInsets padding = const EdgeInsets.all(10),
  21. Color? textColor,
  22. bool outlined = false,
  23. MainAxisAlignment rowAlignment = MainAxisAlignment.center,
  24. bool singleLine = false,
  25. bool expanded = false,
  26. Widget? suffixChip,
  27. EdgeInsets margin = EdgeInsets.zero,
  28. required WidgetBuilder menu,
  29. WidgetBuilder? menuFooter,
  30. bool persistent = false,
  31. double? menuWidth,
  32. double? menuHeight,
})

Implementation

const AButtonWithMenu({
  super.key,
  super.text,
  super.textTitle,
  super.icon,
  super.disabled = false,
  super.loading = false,
  super.color,
  super.upperCase = true,
  super.borderColor,
  super.borderRadius,
  super.fontSize = 12,
  super.iconSize = 18,
  super.fontWeight,
  super.height,
  super.width,
  super.elevation = 2,
  super.landingIcon,
  super.landingImage,
  super.trailingIcon,
  super.padding = const EdgeInsets.all(10),
  super.textColor,
  super.outlined = false,
  super.rowAlignment = MainAxisAlignment.center,
  super.singleLine = false,
  super.expanded = false,
  super.suffixChip,
  super.margin,
  required this.menu,
  this.menuFooter,
  this.persistent = false,
  this.menuWidth,
  this.menuHeight,
}) : super(
  onPressed: null,
);