From 448bd1ffee52547baceeef5803d6bdac3a16a474 Mon Sep 17 00:00:00 2001 From: Remi Rousselet Date: Sun, 27 Nov 2022 15:53:54 +0100 Subject: [PATCH] Fix CI --- all_lint_rules.yaml | 1 - analysis_options.yaml | 4 ---- example/lib/main.dart | 10 +++++----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/all_lint_rules.yaml b/all_lint_rules.yaml index 93d14856..225568ae 100644 --- a/all_lint_rules.yaml +++ b/all_lint_rules.yaml @@ -8,7 +8,6 @@ linter: - always_use_package_imports - annotate_overrides - avoid_annotating_with_dynamic - - avoid_as - avoid_bool_literals_in_conditional_expressions - avoid_catches_without_on_clauses - avoid_catching_errors diff --git a/analysis_options.yaml b/analysis_options.yaml index 027158e2..ce207534 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -38,10 +38,6 @@ linter: # and `@required Widget child` last. always_put_required_named_parameters_first: false - # `as` is not that bad (especially with the upcoming non-nullable types). - # Explicit exceptions is better than implicit exceptions. - avoid_as: false - # This project doesn't use Flutter-style todos flutter_style_todos: false diff --git a/example/lib/main.dart b/example/lib/main.dart index 6b0ae4c4..537d86aa 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -93,10 +93,10 @@ class Count extends StatelessWidget { @override Widget build(BuildContext context) { return Text( - - /// Calls `context.watch` to make [Count] rebuild when [Counter] changes. - '${context.watch().count}', - key: const Key('counterState'), - style: Theme.of(context).textTheme.headline4); + /// Calls `context.watch` to make [Count] rebuild when [Counter] changes. + '${context.watch().count}', + key: const Key('counterState'), + style: Theme.of(context).textTheme.headlineMedium, + ); } }