Destructed record
This commit is contained in:
@@ -219,14 +219,14 @@ class _SettingsViewState extends State<SettingsView> {
|
|||||||
|
|
||||||
void showFeedbackDialog(int success) {
|
void showFeedbackDialog(int success) {
|
||||||
if (success == 0) return;
|
if (success == 0) return;
|
||||||
final content = _getDialogContent(success);
|
final (title, message) = _getDialogContent(success);
|
||||||
|
|
||||||
showCupertinoDialog(
|
showCupertinoDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return CupertinoAlertDialog(
|
return CupertinoAlertDialog(
|
||||||
title: Text(content.$1),
|
title: Text(title),
|
||||||
content: Text(content.$2),
|
content: Text(message),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: Text(AppLocalizations.of(context).ok),
|
child: Text(AppLocalizations.of(context).ok),
|
||||||
|
|||||||
Reference in New Issue
Block a user