mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-08 20:09:24 +00:00
[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)
This commit is contained in:
parent
d79b481d3e
commit
c1c49e878e
2 changed files with 3 additions and 10 deletions
|
@ -57,10 +57,7 @@ Future<void> main() async {
|
|||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
FlutterError.onError = (errorDetails) {
|
||||
// if not a UI error
|
||||
if (errorDetails.library != "widgets library") {
|
||||
_onError(errorDetails);
|
||||
}
|
||||
_onError(errorDetails);
|
||||
};
|
||||
|
||||
/// A callback that is invoked when an unhandled error occurs in the root
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/palette.dart';
|
||||
import 'package:cake_wallet/src/screens/nodes/widgets/node_indicator.dart';
|
||||
import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart';
|
||||
import 'package:cake_wallet/src/widgets/standard_list.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class NodeListRow extends StandardListRow {
|
||||
|
@ -23,7 +19,7 @@ class NodeListRow extends StandardListRow {
|
|||
builder: (context, snapshot) {
|
||||
switch (snapshot.connectionState) {
|
||||
case ConnectionState.done:
|
||||
return NodeIndicator(isLive: (snapshot.data as bool)??false);
|
||||
return NodeIndicator(isLive: (snapshot.data as bool?) ?? false);
|
||||
default:
|
||||
return NodeIndicator(isLive: false);
|
||||
}
|
||||
|
@ -40,7 +36,7 @@ class NodeHeaderListRow extends StandardListRow {
|
|||
return SizedBox(
|
||||
width: 20,
|
||||
child: Icon(Icons.add,
|
||||
color: Theme.of(context).accentTextTheme!.subtitle1!.color!, size: 24.0),
|
||||
color: Theme.of(context).accentTextTheme.subtitle1?.color, size: 24.0),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue