mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-19 05:58:50 +02:00
Add localizations for error dialog content
This commit is contained in:
+4
-5
@@ -154,7 +154,6 @@ Future<void> main() async {
|
||||
initialMigrationVersion: 19);
|
||||
runApp(App());
|
||||
}, (error, stackTrace) async {
|
||||
print("@@@@@@@@@@@@@@@@ in run zone guard");
|
||||
_onError(FlutterErrorDetails(exception: error, stack: stackTrace));
|
||||
});
|
||||
}
|
||||
@@ -165,8 +164,8 @@ void _saveException(String? error, StackTrace? stackTrace) async {
|
||||
final file = File('${appDocDir.path}/error.txt');
|
||||
final exception = {
|
||||
"${DateTime.now()}": {
|
||||
"error": error,
|
||||
"stackTrace": stackTrace.toString(),
|
||||
"Error": error,
|
||||
"StackTrace": stackTrace.toString(),
|
||||
}
|
||||
};
|
||||
|
||||
@@ -214,9 +213,9 @@ void _onError(FlutterErrorDetails errorDetails) {
|
||||
return AlertWithTwoActions(
|
||||
isDividerExist: true,
|
||||
alertTitle: S.of(context).error,
|
||||
alertContent: "Oops, we got some error.\n\nPlease send crash report to our support team to make the application better.",
|
||||
alertContent: S.of(context).error_dialog_content,
|
||||
rightButtonText: S.of(context).send,
|
||||
leftButtonText: "Don't send",
|
||||
leftButtonText: S.of(context).do_not_send,
|
||||
actionRightButton: () {
|
||||
Navigator.of(context).pop();
|
||||
_sendExceptionFile();
|
||||
|
||||
Reference in New Issue
Block a user