Skip to content
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

Migrate to null safety & fix deprecated warnings #31

Open
wants to merge 1 commit into
base: master
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
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ linter:
# - always_specify_types
- annotate_overrides
- avoid_annotating_with_dynamic
- avoid_as
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lint rule was deprecated.

- avoid_bool_literals_in_conditional_expressions
# - avoid_catches_without_on_clauses
- avoid_catching_errors
Expand Down
162 changes: 78 additions & 84 deletions example/.dart_tool/package_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,193 +2,187 @@
"configVersion": 2,
"packages": [
{
"name": "archive",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.11",
"name": "async",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "args",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/args-1.5.2",
"name": "boolean_selector",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "async",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.4.0",
"name": "characters",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "boolean_selector",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.5",
"name": "charcode",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "charcode",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2",
"name": "clock",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0",
"packageUri": "lib/",
"languageVersion": "1.0"
"languageVersion": "2.12"
},
{
"name": "collection",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "convert",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1",
"name": "cupertino_icons",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3",
"packageUri": "lib/",
"languageVersion": "1.17"
"languageVersion": "2.0"
},
{
"name": "crypto",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.3",
"name": "fake_async",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.1"
"languageVersion": "2.12"
},
{
"name": "cupertino_icons",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3",
"name": "flutter",
"rootUri": "file:///Users/hesed/Development/flutter/packages/flutter",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "flutter",
"rootUri": "file:///Users/ayushpgupta/development/flutter/packages/flutter",
"name": "flutter_keyboard_visibility",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.2.0",
"packageUri": "lib/",
"languageVersion": "2.2"
"languageVersion": "2.12"
},
{
"name": "flutter_keyboard_visibility",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-0.7.0",
"name": "flutter_keyboard_visibility_platform_interface",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_platform_interface-2.0.0",
"packageUri": "lib/",
"languageVersion": "2.2"
"languageVersion": "2.12"
},
{
"name": "flutter_test",
"rootUri": "file:///Users/ayushpgupta/development/flutter/packages/flutter_test",
"name": "flutter_keyboard_visibility_web",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_web-2.0.0",
"packageUri": "lib/",
"languageVersion": "2.2"
"languageVersion": "2.12"
},
{
"name": "image",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.4",
"name": "flutter_test",
"rootUri": "file:///Users/hesed/Development/flutter/packages/flutter_test",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "matcher",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.6",
"name": "flutter_web_plugins",
"rootUri": "file:///Users/hesed/Development/flutter/packages/flutter_web_plugins",
"packageUri": "lib/",
"languageVersion": "2.2"
"languageVersion": "2.12"
},
{
"name": "meta",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.1.8",
"name": "js",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.3",
"packageUri": "lib/",
"languageVersion": "1.12"
"languageVersion": "2.12"
},
{
"name": "path",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.6.4",
"name": "matcher",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "pedantic",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/pedantic-1.8.0+1",
"name": "meta",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0",
"packageUri": "lib/",
"languageVersion": "2.1"
"languageVersion": "2.12"
},
{
"name": "petitparser",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/petitparser-2.4.0",
"name": "path",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0",
"packageUri": "lib/",
"languageVersion": "2.4"
"languageVersion": "2.12"
},
{
"name": "quiver",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.5",
"name": "plugin_platform_interface",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/plugin_platform_interface-2.1.2",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "search_widget",
"rootUri": "../../",
"packageUri": "lib/",
"languageVersion": "2.2"
"languageVersion": "2.12"
},
{
"name": "sky_engine",
"rootUri": "file:///Users/ayushpgupta/development/flutter/bin/cache/pkg/sky_engine",
"rootUri": "file:///Users/hesed/Development/flutter/bin/cache/pkg/sky_engine",
"packageUri": "lib/",
"languageVersion": "1.11"
"languageVersion": "2.12"
},
{
"name": "source_span",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.5.5",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1",
"packageUri": "lib/",
"languageVersion": "1.8"
"languageVersion": "2.12"
},
{
"name": "stack_trace",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0",
"packageUri": "lib/",
"languageVersion": "1.23"
"languageVersion": "2.12"
},
{
"name": "stream_channel",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "string_scanner",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "term_glyph",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0",
"packageUri": "lib/",
"languageVersion": "1.8"
"languageVersion": "2.12"
},
{
"name": "test_api",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.11",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.3",
"packageUri": "lib/",
"languageVersion": "2.2"
"languageVersion": "2.12"
},
{
"name": "typed_data",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0",
"packageUri": "lib/",
"languageVersion": "2.0"
"languageVersion": "2.12"
},
{
"name": "vector_math",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "xml",
"rootUri": "file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/xml-3.5.0",
"rootUri": "file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.1",
"packageUri": "lib/",
"languageVersion": "2.3"
"languageVersion": "2.14"
},
{
"name": "example",
"rootUri": "../",
"packageUri": "lib/",
"languageVersion": "2.1"
"languageVersion": "2.12"
}
],
"generated": "2020-01-31T04:41:02.822064Z",
"generated": "2022-02-25T05:11:04.535598Z",
"generator": "pub",
"generatorVersion": "2.8.0-dev.5.0.flutter-fc3af737c7"
"generatorVersion": "2.15.1"
}
2 changes: 1 addition & 1 deletion example/.flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"/Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-0.7.0/","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"/Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-0.7.0/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_keyboard_visibility","dependencies":[]}],"date_created":"2020-01-31 10:11:59.129361","version":"1.14.6"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"/Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.2.0/","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"/Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.2.0/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"flutter_keyboard_visibility_web","path":"/Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_web-2.0.0/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_keyboard_visibility","dependencies":["flutter_keyboard_visibility_web"]},{"name":"flutter_keyboard_visibility_web","dependencies":[]}],"date_created":"2022-02-24 22:41:42.095570","version":"2.8.1"}
64 changes: 34 additions & 30 deletions example/.packages
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
# Generated by pub on 2020-01-31 10:11:02.790920.
archive:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.11/lib/
args:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/args-1.5.2/lib/
async:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.4.0/lib/
boolean_selector:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.5/lib/
charcode:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/
collection:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11/lib/
convert:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1/lib/
crypto:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.3/lib/
cupertino_icons:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3/lib/
flutter:file:///Users/ayushpgupta/development/flutter/packages/flutter/lib/
flutter_keyboard_visibility:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-0.7.0/lib/
flutter_test:file:///Users/ayushpgupta/development/flutter/packages/flutter_test/lib/
image:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.4/lib/
matcher:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.6/lib/
meta:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.1.8/lib/
path:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.6.4/lib/
pedantic:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/pedantic-1.8.0+1/lib/
petitparser:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/petitparser-2.4.0/lib/
quiver:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.5/lib/
# This file is deprecated. Tools should instead consume
# `.dart_tool/package_config.json`.
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2022-02-24 22:11:04.520204.
async:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/
boolean_selector:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
characters:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/lib/
charcode:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1/lib/
clock:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib/
collection:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/lib/
cupertino_icons:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3/lib/
fake_async:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib/
flutter:file:///Users/hesed/Development/flutter/packages/flutter/lib/
flutter_keyboard_visibility:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.2.0/lib/
flutter_keyboard_visibility_platform_interface:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_platform_interface-2.0.0/lib/
flutter_keyboard_visibility_web:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_web-2.0.0/lib/
flutter_test:file:///Users/hesed/Development/flutter/packages/flutter_test/lib/
flutter_web_plugins:file:///Users/hesed/Development/flutter/packages/flutter_web_plugins/lib/
js:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.3/lib/
matcher:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11/lib/
meta:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0/lib/
path:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/lib/
plugin_platform_interface:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/plugin_platform_interface-2.1.2/lib/
search_widget:../lib/
sky_engine:file:///Users/ayushpgupta/development/flutter/bin/cache/pkg/sky_engine/lib/
source_span:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.5.5/lib/
stack_trace:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3/lib/
stream_channel:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0/lib/
string_scanner:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5/lib/
term_glyph:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0/lib/
test_api:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.11/lib/
typed_data:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/
vector_math:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/
xml:file:///Users/ayushpgupta/development/flutter/.pub-cache/hosted/pub.dartlang.org/xml-3.5.0/lib/
sky_engine:file:///Users/hesed/Development/flutter/bin/cache/pkg/sky_engine/lib/
source_span:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1/lib/
stack_trace:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/
stream_channel:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/
string_scanner:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/lib/
term_glyph:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/lib/
test_api:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.3/lib/
typed_data:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0/lib/
vector_math:file:///Users/hesed/Development/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.1/lib/
example:lib/
Loading