diff --git a/.dart_tool/extension_discovery/README.md b/.dart_tool/extension_discovery/README.md deleted file mode 100644 index 9dc6757..0000000 --- a/.dart_tool/extension_discovery/README.md +++ /dev/null @@ -1,31 +0,0 @@ -Extension Discovery Cache -========================= - -This folder is used by `package:extension_discovery` to cache lists of -packages that contains extensions for other packages. - -DO NOT USE THIS FOLDER ----------------------- - - * Do not read (or rely) the contents of this folder. - * Do write to this folder. - -If you're interested in the lists of extensions stored in this folder use the -API offered by package `extension_discovery` to get this information. - -If this package doesn't work for your use-case, then don't try to read the -contents of this folder. It may change, and will not remain stable. - -Use package `extension_discovery` ---------------------------------- - -If you want to access information from this folder. - -Feel free to delete this folder -------------------------------- - -Files in this folder act as a cache, and the cache is discarded if the files -are older than the modification time of `.dart_tool/package_config.json`. - -Hence, it should never be necessary to clear this cache manually, if you find a -need to do please file a bug. diff --git a/.dart_tool/extension_discovery/vs_code.json b/.dart_tool/extension_discovery/vs_code.json deleted file mode 100644 index 2fc921e..0000000 --- a/.dart_tool/extension_discovery/vs_code.json +++ /dev/null @@ -1 +0,0 @@ -{"version":2,"entries":[{"package":"flappy_bird","rootUri":"../","packageUri":"lib/"}]} \ No newline at end of file diff --git a/.dart_tool/package_config.json b/.dart_tool/package_config.json index 5ee87a5..d3d3821 100644 --- a/.dart_tool/package_config.json +++ b/.dart_tool/package_config.json @@ -3,163 +3,163 @@ "packages": [ { "name": "async", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/async-2.13.0", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/async-2.13.0", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "boolean_selector", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/boolean_selector-2.1.2", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/boolean_selector-2.1.2", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "characters", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/characters-1.4.0", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/characters-1.4.0", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "clock", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/clock-1.1.2", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/clock-1.1.2", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "collection", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/collection-1.19.1", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/collection-1.19.1", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "cupertino_icons", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/cupertino_icons-1.0.8", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/cupertino_icons-1.0.8", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "fake_async", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/fake_async-1.3.3", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/fake_async-1.3.3", "packageUri": "lib/", "languageVersion": "3.3" }, { "name": "flutter", - "rootUri": "file:///C:/src/flutter/packages/flutter", + "rootUri": "file:///C:/Users/UTKARSH/Desktop/flutter/packages/flutter", "packageUri": "lib/", "languageVersion": "3.8" }, { "name": "flutter_lints", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-5.0.0", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-5.0.0", "packageUri": "lib/", "languageVersion": "3.5" }, { "name": "flutter_test", - "rootUri": "file:///C:/src/flutter/packages/flutter_test", + "rootUri": "file:///C:/Users/UTKARSH/Desktop/flutter/packages/flutter_test", "packageUri": "lib/", "languageVersion": "3.8" }, { "name": "leak_tracker", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-11.0.2", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-11.0.2", "packageUri": "lib/", "languageVersion": "3.2" }, { "name": "leak_tracker_flutter_testing", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.10", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.10", "packageUri": "lib/", "languageVersion": "3.2" }, { "name": "leak_tracker_testing", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_testing-3.0.2", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_testing-3.0.2", "packageUri": "lib/", "languageVersion": "3.2" }, { "name": "lints", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/lints-5.1.1", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/lints-5.1.1", "packageUri": "lib/", "languageVersion": "3.6" }, { "name": "matcher", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.17", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.17", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "material_color_utilities", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.11.1", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.11.1", "packageUri": "lib/", "languageVersion": "2.17" }, { "name": "meta", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.16.0", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.16.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "path", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.9.1", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.9.1", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "sky_engine", - "rootUri": "file:///C:/src/flutter/bin/cache/pkg/sky_engine", + "rootUri": "file:///C:/Users/UTKARSH/Desktop/flutter/bin/cache/pkg/sky_engine", "packageUri": "lib/", "languageVersion": "3.8" }, { "name": "source_span", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.1", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.1", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "stack_trace", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/stack_trace-1.12.1", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/stack_trace-1.12.1", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "stream_channel", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/stream_channel-2.1.4", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/stream_channel-2.1.4", "packageUri": "lib/", "languageVersion": "3.3" }, { "name": "string_scanner", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/string_scanner-1.4.1", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/string_scanner-1.4.1", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "term_glyph", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/term_glyph-1.2.2", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/term_glyph-1.2.2", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "test_api", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.6", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.6", "packageUri": "lib/", "languageVersion": "3.5" }, { "name": "vector_math", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.2.0", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.2.0", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "vm_service", - "rootUri": "file:///C:/Users/shrey/AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-15.0.0", + "rootUri": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-15.0.0", "packageUri": "lib/", "languageVersion": "3.3" }, @@ -172,7 +172,7 @@ ], "generator": "pub", "generatorVersion": "3.9.2", - "flutterRoot": "file:///C:/src/flutter", - "flutterVersion": "3.35.5", - "pubCache": "file:///C:/Users/shrey/AppData/Local/Pub/Cache" + "flutterRoot": "file:///C:/Users/UTKARSH/Desktop/flutter", + "flutterVersion": "3.35.3", + "pubCache": "file:///C:/Users/UTKARSH/AppData/Local/Pub/Cache" } diff --git a/.dart_tool/package_config_subset b/.dart_tool/package_config_subset deleted file mode 100644 index 68b2981..0000000 --- a/.dart_tool/package_config_subset +++ /dev/null @@ -1,113 +0,0 @@ -async -3.4 -file:///home/ashu/.pub-cache/hosted/pub.dev/async-2.13.0/ -file:///home/ashu/.pub-cache/hosted/pub.dev/async-2.13.0/lib/ -boolean_selector -3.1 -file:///home/ashu/.pub-cache/hosted/pub.dev/boolean_selector-2.1.2/ -file:///home/ashu/.pub-cache/hosted/pub.dev/boolean_selector-2.1.2/lib/ -characters -3.4 -file:///home/ashu/.pub-cache/hosted/pub.dev/characters-1.4.0/ -file:///home/ashu/.pub-cache/hosted/pub.dev/characters-1.4.0/lib/ -clock -3.4 -file:///home/ashu/.pub-cache/hosted/pub.dev/clock-1.1.2/ -file:///home/ashu/.pub-cache/hosted/pub.dev/clock-1.1.2/lib/ -collection -3.4 -file:///home/ashu/.pub-cache/hosted/pub.dev/collection-1.19.1/ -file:///home/ashu/.pub-cache/hosted/pub.dev/collection-1.19.1/lib/ -cupertino_icons -3.1 -file:///home/ashu/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/ -file:///home/ashu/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/lib/ -fake_async -3.3 -file:///home/ashu/.pub-cache/hosted/pub.dev/fake_async-1.3.3/ -file:///home/ashu/.pub-cache/hosted/pub.dev/fake_async-1.3.3/lib/ -flutter_lints -3.5 -file:///home/ashu/.pub-cache/hosted/pub.dev/flutter_lints-5.0.0/ -file:///home/ashu/.pub-cache/hosted/pub.dev/flutter_lints-5.0.0/lib/ -leak_tracker -3.2 -file:///home/ashu/.pub-cache/hosted/pub.dev/leak_tracker-10.0.9/ -file:///home/ashu/.pub-cache/hosted/pub.dev/leak_tracker-10.0.9/lib/ -leak_tracker_flutter_testing -3.2 -file:///home/ashu/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/ -file:///home/ashu/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/lib/ -leak_tracker_testing -3.2 -file:///home/ashu/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/ -file:///home/ashu/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/lib/ -lints -3.6 -file:///home/ashu/.pub-cache/hosted/pub.dev/lints-5.1.1/ -file:///home/ashu/.pub-cache/hosted/pub.dev/lints-5.1.1/lib/ -matcher -3.4 -file:///home/ashu/.pub-cache/hosted/pub.dev/matcher-0.12.17/ -file:///home/ashu/.pub-cache/hosted/pub.dev/matcher-0.12.17/lib/ -material_color_utilities -2.17 -file:///home/ashu/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1/ -file:///home/ashu/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1/lib/ -meta -2.12 -file:///home/ashu/.pub-cache/hosted/pub.dev/meta-1.16.0/ -file:///home/ashu/.pub-cache/hosted/pub.dev/meta-1.16.0/lib/ -path -3.4 -file:///home/ashu/.pub-cache/hosted/pub.dev/path-1.9.1/ -file:///home/ashu/.pub-cache/hosted/pub.dev/path-1.9.1/lib/ -source_span -3.1 -file:///home/ashu/.pub-cache/hosted/pub.dev/source_span-1.10.1/ -file:///home/ashu/.pub-cache/hosted/pub.dev/source_span-1.10.1/lib/ -stack_trace -3.4 -file:///home/ashu/.pub-cache/hosted/pub.dev/stack_trace-1.12.1/ -file:///home/ashu/.pub-cache/hosted/pub.dev/stack_trace-1.12.1/lib/ -stream_channel -3.3 -file:///home/ashu/.pub-cache/hosted/pub.dev/stream_channel-2.1.4/ -file:///home/ashu/.pub-cache/hosted/pub.dev/stream_channel-2.1.4/lib/ -string_scanner -3.1 -file:///home/ashu/.pub-cache/hosted/pub.dev/string_scanner-1.4.1/ -file:///home/ashu/.pub-cache/hosted/pub.dev/string_scanner-1.4.1/lib/ -term_glyph -3.1 -file:///home/ashu/.pub-cache/hosted/pub.dev/term_glyph-1.2.2/ -file:///home/ashu/.pub-cache/hosted/pub.dev/term_glyph-1.2.2/lib/ -test_api -3.5 -file:///home/ashu/.pub-cache/hosted/pub.dev/test_api-0.7.4/ -file:///home/ashu/.pub-cache/hosted/pub.dev/test_api-0.7.4/lib/ -vector_math -2.14 -file:///home/ashu/.pub-cache/hosted/pub.dev/vector_math-2.1.4/ -file:///home/ashu/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/ -vm_service -3.3 -file:///home/ashu/.pub-cache/hosted/pub.dev/vm_service-15.0.0/ -file:///home/ashu/.pub-cache/hosted/pub.dev/vm_service-15.0.0/lib/ -sky_engine -3.7 -file:///home/ashu/app%20development/flutter/bin/cache/pkg/sky_engine/ -file:///home/ashu/app%20development/flutter/bin/cache/pkg/sky_engine/lib/ -flutter -3.7 -file:///home/ashu/app%20development/flutter/packages/flutter/ -file:///home/ashu/app%20development/flutter/packages/flutter/lib/ -flutter_test -3.7 -file:///home/ashu/app%20development/flutter/packages/flutter_test/ -file:///home/ashu/app%20development/flutter/packages/flutter_test/lib/ -flappy_bird -3.7 -file:///home/ashu/app%20development/projects/Notes_app/ -file:///home/ashu/app%20development/projects/Notes_app/lib/ -2 diff --git a/.dart_tool/package_graph.json b/.dart_tool/package_graph.json index 977bb3c..cb3fdff 100644 --- a/.dart_tool/package_graph.json +++ b/.dart_tool/package_graph.json @@ -180,6 +180,17 @@ "meta" ] }, + { + "name": "leak_tracker", + "version": "11.0.2", + "dependencies": [ + "clock", + "collection", + "meta", + "path", + "vm_service" + ] + }, { "name": "term_glyph", "version": "1.2.2", @@ -209,17 +220,6 @@ "string_scanner" ] }, - { - "name": "leak_tracker", - "version": "11.0.2", - "dependencies": [ - "clock", - "collection", - "meta", - "path", - "vm_service" - ] - }, { "name": "vm_service", "version": "15.0.0", diff --git a/.dart_tool/version b/.dart_tool/version index fe5d712..398f1f6 100644 --- a/.dart_tool/version +++ b/.dart_tool/version @@ -1 +1 @@ -3.35.5 \ No newline at end of file +3.35.3 \ No newline at end of file diff --git a/lib/homepage.dart b/lib/homepage.dart index dc8c777..a5867c3 100644 --- a/lib/homepage.dart +++ b/lib/homepage.dart @@ -54,12 +54,12 @@ class _HomepageState extends State { gameTimer = Timer.periodic(const Duration(milliseconds: 50), (timer) { setState(() { time += 0.05; - height = -4.9 * time * time + 2.8 * time; + height = -4.2 * time * time + 2.6 * time; birdY = initialPos - height; // Move barriers - barrierx1 -= 0.05; - barrierx2 -= 0.05; + barrierx1 -= 0.03; + barrierx2 -= 0.03; // Reposition barriers and increase score if (barrierx1 < -1.5) { @@ -98,10 +98,14 @@ class _HomepageState extends State { } void jump() { - time = 0; - initialPos = birdY; + setState(() { + time = 0; + initialPos = birdY; + birdY -= 0.05; + }); } + bool birdisDead() { // Check if bird hits top or bottom of screen if (birdY > 1 || birdY < -1) {