AppTextWithIconButton constructor

const AppTextWithIconButton({
  1. Key? key,
  2. required void onPressed(),
  3. required String text,
  4. IconData? iconData,
  5. String tooltip = '',
  6. Color backgroundColor = AppColors.blue,
  7. bool isGreyButton = false,
})

Implementation

const AppTextWithIconButton({
  super.key,
  required this.onPressed,
  required this.text,
  this.iconData, // Icon can be null
  this.tooltip = '', // Default is empty tooltip
  this.backgroundColor = AppColors.blue, // Default is empty tooltip
  this.isGreyButton = false, // Default is empty tooltip
});