[skip ci] - Revert disabling UI error reporting as it will also disable some errors from the view models - Fix warnings in node list row (potential nullability issue fix)
[skip ci] - Revert disabling UI error reporting as it will also disable some errors from the view models - Fix warnings in node list row (potential nullability issue fix)
OmarHatem committed
Jan 24, 2023 at 02:46 UTC
c1c49e878eb8d825c6630b9934095dae91f5010f
2 files changed
+3
-10
lib/main.dart
+1
-4
@@ -57,10 +57,7 @@ Future<void> main() async {
57
WidgetsFlutterBinding.ensureInitialized();
58
59
FlutterError.onError = (errorDetails) {
60
- // if not a UI error
61
- if (errorDetails.library != "widgets library") {
62
- _onError(errorDetails);
63
- }
60
+ _onError(errorDetails);
61
};
62
63
/// A callback that is invoked when an unhandled error occurs in the root
lib/src/screens/nodes/widgets/node_list_row.dart
+2
-6
@@ -1,9 +1,5 @@
1
-import 'package:cake_wallet/generated/i18n.dart';
2
-import 'package:cake_wallet/palette.dart';
1
import 'package:cake_wallet/src/screens/nodes/widgets/node_indicator.dart';
4
-import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart';
2
import 'package:cake_wallet/src/widgets/standard_list.dart';
6
-import 'package:flutter/cupertino.dart';
3
import 'package:flutter/material.dart';
4
5
class NodeListRow extends StandardListRow {
@@ -23,7 +19,7 @@ class NodeListRow extends StandardListRow {
19
builder: (context, snapshot) {
20
switch (snapshot.connectionState) {
21
case ConnectionState.done:
26
- return NodeIndicator(isLive: (snapshot.data as bool)??false);
22
+ return NodeIndicator(isLive: (snapshot.data as bool?) ?? false);
23
default:
24
return NodeIndicator(isLive: false);
25
}
@@ -40,7 +36,7 @@ class NodeHeaderListRow extends StandardListRow {
36
return SizedBox(
37
width: 20,
38
child: Icon(Icons.add,
43
- color: Theme.of(context).accentTextTheme!.subtitle1!.color!, size: 24.0),
39
+ color: Theme.of(context).accentTextTheme.subtitle1?.color, size: 24.0),
40
);
41
}
42
}