diff --git a/experimental/web_dashboard/analysis_options.yaml b/experimental/web_dashboard/analysis_options.yaml index 42db08ec0..30ac27228 100644 --- a/experimental/web_dashboard/analysis_options.yaml +++ b/experimental/web_dashboard/analysis_options.yaml @@ -7,13 +7,11 @@ analyzer: linter: rules: - avoid_print: false avoid_types_on_closure_parameters: true avoid_void_async: true cancel_subscriptions: true close_sinks: true directives_ordering: true - file_names: false package_api_docs: true package_prefixed_library_names: true test_types_in_equals: true diff --git a/experimental/web_dashboard/lib/src/auth/firebase.dart b/experimental/web_dashboard/lib/src/auth/firebase.dart index 9fcd2881c..3ac5b802c 100644 --- a/experimental/web_dashboard/lib/src/auth/firebase.dart +++ b/experimental/web_dashboard/lib/src/auth/firebase.dart @@ -19,8 +19,7 @@ class FirebaseAuthService implements Auth { Future signIn() async { try { return await _signIn(); - } on PlatformException catch (e) { - print('Unable to sign in: $e'); + } on PlatformException { throw SignInException(); } } diff --git a/experimental/web_dashboard/lib/src/widgets/edit_entry.dart b/experimental/web_dashboard/lib/src/widgets/edit_entry.dart index fc35f02a2..409236d3a 100644 --- a/experimental/web_dashboard/lib/src/widgets/edit_entry.dart +++ b/experimental/web_dashboard/lib/src/widgets/edit_entry.dart @@ -89,11 +89,7 @@ class _EditEntryFormState extends State { return null; }, onChanged: (newValue) { - try { - widget.entry.value = int.parse(newValue); - } on FormatException { - print('Entry cannot contain "$newValue". Expected a number'); - } + widget.entry.value = int.parse(newValue); }, ), ),