KRIconButton constructor

const KRIconButton({
  1. Key? key,
  2. required IconData iconData,
  3. required int color,
  4. required VoidCallback? onPressed,
  5. String? text,
  6. bool isDisabled = false,
  7. int? textBackgroundColor = KRTheme.DEFAULT_PRIMARY_COLOR,
  8. bool isOutline = false,
  9. bool isCirle = true,
  10. KRButtonSize size = KRButtonSize.large,
  11. int? backgroundColor,
})

Implementation

const KRIconButton(
    {Key? key,
    required this.iconData,
    required this.color,
    required this.onPressed,
    this.text,
    this.isDisabled = false,
    this.textBackgroundColor = KRTheme.DEFAULT_PRIMARY_COLOR,
    this.isOutline = false,
    this.isCirle = true,
    this.size = KRButtonSize.large,
    this.backgroundColor})
    : super(key: key);