Skip to content
This repository was archived by the owner on Aug 17, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ linter:
- always_put_control_body_on_new_line
# - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
- always_require_non_null_named_parameters
- always_specify_types
# - always_specify_types
- annotate_overrides
# - avoid_annotating_with_dynamic # conflicts with always_specify_types
- avoid_as
Expand Down Expand Up @@ -131,7 +131,7 @@ linter:
- prefer_equal_for_default_values
# - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
- prefer_final_fields
- prefer_final_locals
# - prefer_final_locals
- prefer_foreach
# - prefer_function_declarations_over_variables # not yet tested
- prefer_generic_function_type_aliases
Expand All @@ -151,7 +151,7 @@ linter:
- sort_constructors_first
- sort_pub_dependencies
- sort_unnamed_constructors_first
- super_goes_last
# - super_goes_last
- test_types_in_equals
- throw_in_finally
# - type_annotate_public_apis # subset of always_specify_types
Expand Down
3 changes: 2 additions & 1 deletion lib/auth_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class AuthProvider extends InheritedWidget {
bool updateShouldNotify(InheritedWidget oldWidget) => true;

static AuthProvider of(BuildContext context) {
return context.inheritFromWidgetOfExactType(AuthProvider);
// return context.inheritFromWidgetOfExactType(AuthProvider);
return context.dependOnInheritedWidgetOfExactType();
}
}