Skip to content

SDK & Dependency Updates #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: null-safety
Choose a base branch
from
Open
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
14 changes: 5 additions & 9 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ analyzer:
implicit-casts: false
errors:
unused_import: error
unused_local_variable: warning
unused_local_variable: warning
dead_code: error
invalid_override_of_non_virtual_member: error
exclude:
Expand All @@ -18,7 +18,6 @@ linter:
- avoid_null_checks_in_equality_operators
- avoid_renaming_method_parameters
- avoid_return_types_on_setters
- avoid_returning_null
- avoid_types_as_parameter_names
- avoid_unused_constructor_parameters
- await_only_futures
Expand All @@ -34,11 +33,8 @@ linter:
- empty_statements
- hash_and_equals
#- implementation_imports
- invariant_booleans
- iterable_contains_unrelated_type
- library_names
- library_prefixes
- list_remove_unrelated_type
- no_adjacent_strings_in_list
- no_duplicate_case_values
- non_constant_identifier_names
Expand All @@ -58,7 +54,7 @@ linter:
#- prefer_interpolation_to_compose_strings
- prefer_is_empty
- prefer_is_not_empty
# - prefer_single_quotes
# - prefer_single_quotes
- prefer_typing_uninitialized_variables
- recursive_getters
- slash_for_doc_comments
Expand All @@ -68,9 +64,9 @@ linter:
- unawaited_futures
- unnecessary_brace_in_string_interps
- unnecessary_getters_setters
# - unnecessary_lambdas
# - unnecessary_lambdas
- unnecessary_null_aware_assignments
- unnecessary_statements
# - unnecessary_this
# - unnecessary_this
- unrelated_type_equality_checks
- valid_regexps
- valid_regexps
13 changes: 4 additions & 9 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ analyzer:
invalid_override_of_non_virtual_member: error
exclude:
- lib/json/*


linter:
rules:
Expand All @@ -19,7 +18,6 @@ linter:
- avoid_null_checks_in_equality_operators
- avoid_renaming_method_parameters
- avoid_return_types_on_setters
- avoid_returning_null
- avoid_types_as_parameter_names
- avoid_unused_constructor_parameters
- await_only_futures
Expand All @@ -35,11 +33,8 @@ linter:
- empty_statements
- hash_and_equals
#- implementation_imports
- invariant_booleans
- iterable_contains_unrelated_type
- library_names
- library_prefixes
- list_remove_unrelated_type
- no_adjacent_strings_in_list
- no_duplicate_case_values
- non_constant_identifier_names
Expand All @@ -59,7 +54,7 @@ linter:
#- prefer_interpolation_to_compose_strings
- prefer_is_empty
- prefer_is_not_empty
# - prefer_single_quotes
# - prefer_single_quotes
- prefer_typing_uninitialized_variables
- recursive_getters
- slash_for_doc_comments
Expand All @@ -69,9 +64,9 @@ linter:
- unawaited_futures
- unnecessary_brace_in_string_interps
- unnecessary_getters_setters
# - unnecessary_lambdas
# - unnecessary_lambdas
- unnecessary_null_aware_assignments
- unnecessary_statements
# - unnecessary_this
# - unnecessary_this
- unrelated_type_equality_checks
- valid_regexps
- valid_regexps
4 changes: 1 addition & 3 deletions example/lib/homepage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ class HomePage extends StatelessWidget {
.execute
: null;
}
return RaisedButton(
return ElevatedButton(
child: Text("Update"),
color: Color.fromARGB(255, 33, 150, 243),
textColor: Color.fromARGB(255, 255, 255, 255),
onPressed: handler,
);
},
Expand Down
141 changes: 95 additions & 46 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
@@ -1,27 +1,38 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
characters:
async:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
name: async
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
charcode:
version: "2.13.0"
boolean_selector:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
name: boolean_selector
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
characters:
dependency: transitive
description:
name: characters
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
url: "https://pub.dev"
source: hosted
version: "1.2.0"
version: "1.4.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
url: "https://pub.dev"
source: hosted
version: "1.15.0"
version: "1.19.1"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -31,111 +42,149 @@ packages:
dependency: "direct main"
description:
name: http
url: "https://pub.dartlang.org"
sha256: fe7ab022b76f3034adc518fb6ea04a82387620e19977665ea18d30a1cf43442f
url: "https://pub.dev"
source: hosted
version: "0.13.1"
version: "1.3.0"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571"
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "4.1.2"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
url: "https://pub.dev"
source: hosted
version: "0.12.17"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
url: "https://pub.dev"
source: hosted
version: "0.12.10"
version: "0.11.1"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
url: "https://pub.dev"
source: hosted
version: "1.3.0"
version: "1.16.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.9.1"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
sha256: ea0b925899e64ecdfbf9c7becb60d5b50e706ade44a85b2363be2a22d88117d2
url: "https://pub.dev"
source: hosted
version: "3.0.1"
version: "3.2.2"
rx_command:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "5.3.0"
version: "6.0.0"
rxdart:
dependency: "direct main"
description:
name: rxdart
url: "https://pub.dartlang.org"
sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962"
url: "https://pub.dev"
source: hosted
version: "0.26.0"
version: "0.28.0"
sky_engine:
dependency: transitive
description: flutter
source: sdk
version: "0.0.99"
version: "0.0.0"
source_span:
dependency: transitive
description:
name: source_span
url: "https://pub.dartlang.org"
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
url: "https://pub.dev"
source: hosted
version: "1.8.1"
version: "1.10.1"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
url: "https://pub.dev"
source: hosted
version: "1.10.0"
version: "1.12.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
url: "https://pub.dev"
source: hosted
version: "2.1.4"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
version: "1.4.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
version: "1.2.2"
test_api:
dependency: transitive
description:
name: test_api
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
url: "https://pub.dev"
source: hosted
version: "0.7.4"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
url: "https://pub.dev"
source: hosted
version: "1.3.0"
version: "1.4.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
url: "https://pub.dev"
source: hosted
version: "2.1.4"
web:
dependency: transitive
description:
name: web
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
version: "1.1.1"
sdks:
dart: ">=2.12.0 <3.0.0"
dart: ">=3.7.0-0 <4.0.0"
6 changes: 4 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: flutter_weather_demo
description: A new Flutter project.
version: 1.0.0+1
publish_to: none

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: ">=3.0.0 <4.0.0"

dependencies:
flutter:
sdk: flutter
http: any
rxdart: ^0.26.0
rxdart: ^0.28.0
rx_command:
path: ../

Expand Down
Loading