mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-11 05:14:46 +00:00
Fix modified exception_handler.dart
This commit is contained in:
parent
bc1cfc5fe9
commit
0510cee83d
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,6 @@ import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_mailer/flutter_mailer.dart';
|
import 'package:flutter_mailer/flutter_mailer.dart';
|
||||||
import 'package:cake_wallet/utils/package_info.dart';
|
import 'package:cake_wallet/utils/package_info.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
|
|
||||||
class ExceptionHandler {
|
class ExceptionHandler {
|
||||||
|
@ -21,7 +20,7 @@ class ExceptionHandler {
|
||||||
|
|
||||||
static void _saveException(String? error, StackTrace? stackTrace, {String? library}) async {
|
static void _saveException(String? error, StackTrace? stackTrace, {String? library}) async {
|
||||||
if (_file == null) {
|
if (_file == null) {
|
||||||
final appDocDir = await getApplicationDocumentsDirectory();
|
final appDocDir = await getAppDir();
|
||||||
|
|
||||||
_file = File('${appDocDir.path}/error.txt');
|
_file = File('${appDocDir.path}/error.txt');
|
||||||
}
|
}
|
||||||
|
@ -53,7 +52,8 @@ class ExceptionHandler {
|
||||||
|
|
||||||
static void _sendExceptionFile() async {
|
static void _sendExceptionFile() async {
|
||||||
try {
|
try {
|
||||||
final appDocDir = await getAppDir();
|
if (_file == null) {
|
||||||
|
final appDocDir = await getAppDir();
|
||||||
|
|
||||||
_file = File('${appDocDir.path}/error.txt');
|
_file = File('${appDocDir.path}/error.txt');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue