Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
rrousselGit committed Nov 27, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8c23aa3 commit 448bd1f
Showing 3 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion all_lint_rules.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -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

10 changes: 5 additions & 5 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -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<Counter>().count}',
key: const Key('counterState'),
style: Theme.of(context).textTheme.headline4);
/// Calls `context.watch` to make [Count] rebuild when [Counter] changes.
'${context.watch<Counter>().count}',
key: const Key('counterState'),
style: Theme.of(context).textTheme.headlineMedium,
);
}
}

0 comments on commit 448bd1f

Please sign in to comment.