materialYesOrNo method
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),
),
];