forge2d 0.15.1 copy "forge2d: ^0.15.1" to clipboard
forge2d: ^0.15.1 copied to clipboard

A 2D physics engine for Dart, binding to the native Box2D v3 library. Also works with the Flame game engine in Flutter.

150/ 160
pub points
6.06k
downloads

We analyzed this package 2 days ago, and awarded it 150 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: BSD-3-Clause.

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

558 out of 649 API elements (86.0 %) have documentation comments.

Some symbols that are missing documentation: forge2d.DebugDraw.DebugDraw.new, forge2d.Vector2.g, forge2d.Vector2.gg, forge2d.Vector2.ggg, forge2d.Vector2.gggg.

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

WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: Use an 'if' element to conditionally add elements.

lib/src/backend/raw_box2d_wasm.dart:105:42

    ╷
105 │     for (var i = 0; i < raw.length; i++) i.isOdd ? _unsigned32(raw[i]) : raw[i],
    │                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

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

Partially passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Partially passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
code_assets ^1.2.1 1.2.1 2.0.0
ffi ^2.1.4 2.2.0 2.2.0
hooks ^2.0.0 2.2.0 2.2.0
logging ^1.3.0 1.3.0 1.3.0
meta ^1.16.0 1.19.0 1.19.0
native_toolchain_c ^0.19.0 0.19.3 0.19.4
vector_math ^2.1.4 2.4.2 2.4.2
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.1 2.13.1
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
file - 7.0.1 7.0.1
glob - 2.2.0 2.2.0
path - 1.9.1 1.9.1
pub_semver - 2.2.1 2.2.1
record_use - 1.1.1 1.1.1
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
yaml - 3.1.4 3.1.4

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

The constraint `^1.2.1` on code_assets does not support the stable version `2.0.0`, that was published 16 days ago.

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

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.19, Dart 3.13.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
138
likes
150
points
6.06k
downloads

Documentation

API reference

Publisher

verified publisherflame-engine.org

Weekly Downloads

A 2D physics engine for Dart, binding to the native Box2D v3 library. Also works with the Flame game engine in Flutter.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

code_assets, ffi, hooks, logging, meta, native_toolchain_c, vector_math

More

Packages that depend on forge2d