alertFeedbackFunction function
void
alertFeedbackFunction(
- BuildContext outerContext,
- String feedbackText,
- Uint8List? feedbackScreenshot
Shows an AlertDialog with the given feedback. This is useful for debugging purposes.
Implementation
void alertFeedbackFunction(
BuildContext outerContext,
String feedbackText,
Uint8List? feedbackScreenshot,
) {
showDialog<void>(
context: outerContext,
builder: (context) {
return AlertDialog(
title: Text(feedbackText),
content: feedbackScreenshot != null
? Image.memory(
feedbackScreenshot,
height: 600,
width: 500,
fit: BoxFit.contain,
)
: null,
actions: <Widget>[
TextButton(
child: const Text('Close'),
onPressed: () {
Navigator.pop(context);
},
)
],
);
},
);
}