materialYesOrNo method

List<Widget> materialYesOrNo(
  1. BuildContext context
)

materialYesOrNo Show yes or no alert for Android

Implementation

List<Widget> materialYesOrNo(BuildContext context) => [
      TextButton(
        child: Text(
          _smartAlertDialog.getText().cancel,
          textAlign: TextAlign.center,
          style: _smartAlertDialog.getStyle().cancel,
        ),
        onPressed: _smartAlertDialog.getOnCancelPress(context),
      ),
      TextButton(
        child: Text(
          _smartAlertDialog.getText().confirm,
          textAlign: TextAlign.center,
          style: _smartAlertDialog.getStyle().confirm,
        ),
        onPressed: _smartAlertDialog.getOnConfirmPress(context),
      ),
    ];