Skip to content

Commit

Permalink
warning to quit send email
Browse files Browse the repository at this point in the history
  • Loading branch information
hatch01 committed Jan 23, 2024
1 parent ec1e68e commit 069846c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/onyx/lib/l10n/app_ar.arb
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,6 @@
"pleaseSelectOutputFile": "الرجاء تحديد ملف الإخراج",
"unableToOpenLink": "من المستحيل فتح الرابط",
"chooseLanguage": "اختر اللغة",
"auto": "تلقائي"
"auto": "تلقائي",
"realyQuit": "حقيقة تريد الاستقالة؟"
}
4 changes: 4 additions & 0 deletions apps/onyx/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -978,5 +978,9 @@
"auto": "Automatic",
"@auto": {
"description": "Automatic"
},
"realyQuit": "Do you really want to quit?",
"@realyQuit": {
"description": "Do you really want to quit?"
}
}
3 changes: 2 additions & 1 deletion apps/onyx/lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,6 @@
"pleaseSelectOutputFile": "Veuillez sélectionner un fichier de sortie",
"unableToOpenLink": "Impossible d''ouvrir le lien",
"chooseLanguage": "Choisir la langue",
"auto": "Automatique"
"auto": "Automatique",
"realyQuit": "Voulez-vous vraiment quitter ?"
}
3 changes: 2 additions & 1 deletion apps/onyx/lib/l10n/app_ru.arb
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,6 @@
"unableToOpenLink": "Не удалось открыть ссылку",
"chooseLanguage": "Выберите язык",
"auto": "Автоматически",
"unflagedEmail": "Неотмеченное письмо: {subject}"
"unflagedEmail": "Неотмеченное письмо: {subject}",
"realyQuit": "Вы действительно хотите бросить курить?"
}
22 changes: 21 additions & 1 deletion apps/onyx/lib/screens/mails/pages/email_send_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,27 @@ class MailSendPage extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center,
children: [
InkWell(
onTap: () => Navigator.pop(context),
onTap: () => showDialog(
context: context,
builder: (context) => AlertDialog(
backgroundColor:
Theme.of(context).colorScheme.background,
title: Text(AppLocalizations.of(context).realyQuit),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
child: const Text("Non"),
),
TextButton(
onPressed: () {
Navigator.pop(context);
Navigator.pop(context);
},
child: const Text("Oui"),
),
],
),
),
child: Icon(
Icons.arrow_back_rounded,
color: Theme.of(context)
Expand Down

0 comments on commit 069846c

Please sign in to comment.