cancelConfirmBtn method

Widget cancelConfirmBtn()

Implementation

Widget cancelConfirmBtn() {
  return Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: [
      Expanded(
        flex: UFUResponsiveDesign.popOverButtonFlex,
        child: UFUButton(
          text: widget.prefixBtnText?.toUpperCase(),
          textColor: AppTheme.themeColors.primary,
          size: UFUButtonSize.small,
          disabled: widget.disableButtons,
          colorType: UFUButtonColorType.lightGray,
          onPressed: widget.onTapPrefix ??
              () {
                Navigator.pop(context);
              },
        ),
      ),
      if(widget.suffixBtnText != null && widget.suffixBtnText!.isNotEmpty) const SizedBox(
        width: 14,
      ),
      if(widget.suffixBtnText != null && widget.suffixBtnText!.isNotEmpty) Expanded(
        flex: UFUResponsiveDesign.popOverButtonFlex,
        child: UFUButton(
          text: widget.suffixBtnIcon == null
              ? widget.suffixBtnText?.toUpperCase()
              : '',
          textColor: AppTheme.themeColors.base,
          size: UFUButtonSize.small,
          colorType: UFUButtonColorType.primary,
          onPressed: widget.onTapSuffix,
          iconWidget: widget.suffixBtnIcon,
          disabled: widget.disableButtons,
        ),
      ),
    ],
  );
}