flame_spatial_grid 0.9.1 copy "flame_spatial_grid: ^0.9.1" to clipboard
flame_spatial_grid: ^0.9.1 copied to clipboard

Spatial partitioning of game field to improve performance of collision detection and rendering

80/ 160
pub points
17
downloads

We analyzed this package 22 days ago, and awarded it 80 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

1305 out of 1927 API elements (67.7 %) have documentation comments.

Some symbols that are missing documentation: flame_spatial_grid, flame_spatial_grid.AnimationGlobal, flame_spatial_grid.AnimationGlobal.AnimationGlobal.new, flame_spatial_grid.AnimationGlobal.animationType, flame_spatial_grid.AnimationGlobal.tickersProvider.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

Found 32 issues. Showing the first 2:

ERROR: 'SpatialGridCollisionDetection.raycast' ('RaycastResult

lib/src/collisions/collision_detection.dart:282:31

    ╷
282 │   RaycastResult<ShapeHitbox>? raycast(
    │                               ^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/collisions/collision_detection.dart

ERROR: The operator '[]' isn't defined for the type 'Iterable

lib/src/collisions/optimizer/collision_optimizer.dart:63:46

   ╷
63 │       final child = componentsForOptimization[i];
   │                                              ^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/collisions/optimizer/collision_optimizer.dart

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
collection ^1.18.0 1.19.1 1.19.1
dart_bloom_filter ^1.0.0 1.0.0 1.0.0
flame ^1.14.0 1.34.0 1.34.0
flame_tiled ^1.18.0 1.21.2 3.0.9
flat_buffers ^23.5.26 23.5.26 25.9.23
isolate_manager ^4.1.3 4.3.1 6.1.2
js ^0.6.7 0.6.7 0.7.2 Discontinued
meta ^1.8.0 1.17.0 1.17.0
tiled ^0.10.2 0.10.2 0.11.1
vector_math ^2.1.4 2.2.0 2.2.0
xml ^6.5.0 6.6.1 6.6.1
Transitive dependencies
Package Constraint Compatible Latest Notes
archive - 3.6.1 4.0.7
async - 2.13.0 2.13.0
bit_array - 2.3.0 2.3.0
characters - 1.4.0 1.4.1
crypto - 3.0.7 3.0.7
isolate_contactor - 4.2.0 4.2.0 Discontinued
json_annotation - 4.9.0 4.9.0
material_color_utilities - 0.11.1 0.13.0
murmurhash - 1.0.1 1.0.1
ordered_set - 8.0.0 8.0.0
path - 1.9.1 1.9.1
petitparser - 7.0.1 7.0.1
stream_channel - 2.1.4 2.1.4
typed_data - 1.4.0 1.4.0
web - 0.5.1 1.1.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 6 issues. Showing the first 2:

The constraint `^1.18.0` on flame_tiled does not support the stable version `2.0.0`.

Try running dart pub upgrade --major-versions flame_tiled to update the constraint.

The constraint `^23.5.26` on flat_buffers does not support the stable version `25.9.23`, that was published 20 days ago.

When flat_buffers is 30 days old, this package will no longer be awarded points in this category.

Try running dart pub upgrade --major-versions flat_buffers to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 3 errors:

  • UNDEFINED_FUNCTION - lib/src/collisions/optimizer/isolate/spatial_grid_optimizer_worker.dart:20:20 - The function 'getProperty' isn't defined.
  • UNDEFINED_FUNCTION - lib/src/collisions/optimizer/isolate/spatial_grid_optimizer_worker.dart:57:11 - The function 'setProperty' isn't defined.
  • UNDEFINED_FUNCTION - lib/src/collisions/optimizer/isolate/spatial_grid_optimizer_worker.dart:57:52 - The function 'allowInterop' isn't defined.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.3, Flutter 3.38.4, Dart 3.10.3.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
4
likes
80
points
17
downloads

Publisher

verified publisherasgalex.pro

Weekly Downloads

Spatial partitioning of game field to improve performance of collision detection and rendering

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, dart_bloom_filter, flame, flame_tiled, flat_buffers, flutter, isolate_manager, js, meta, tiled, vector_math, xml

More

Packages that depend on flame_spatial_grid