Add error handler for ui. Roses are red Violets are blue, Sugar is sweet And so are you.

This commit is contained in:
M 2022-03-24 13:35:06 +01:00
parent 638e9f3f8e
commit 9dd26a85a2
3 changed files with 13 additions and 2 deletions

View file

@ -112,6 +112,17 @@ Future<void> main() async {
if (!isMoneroOnly) {
unspentCoinsInfoSource = await Hive.openBox<UnspentCoinsInfo>(UnspentCoinsInfo.boxName);
}
FlutterError.onError = (FlutterErrorDetails details) {
runApp(MaterialApp(
debugShowCheckedModeBanner: true,
home: Scaffold(
body: Container(
margin: EdgeInsets.only(top: 50, left: 20, right: 20, bottom: 20),
child: Text(
'Error:\n${details.stack.toString()}',
style: TextStyle(fontSize: 22))))));
};
await initialSetup(
sharedPreferences: await SharedPreferences.getInstance(),

View file

@ -21,7 +21,7 @@ MONERO_COM_PACKAGE="com.monero.app"
CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="4.3.9"
CAKEWALLET_BUILD_NUMBER=92
CAKEWALLET_BUILD_NUMBER=93
CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet"
CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet"

View file

@ -19,7 +19,7 @@ MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="4.3.9"
CAKEWALLET_BUILD_NUMBER=87
CAKEWALLET_BUILD_NUMBER=88
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
HAVEN_NAME="Haven"