lemon_engine 0.6.9 copy "lemon_engine: ^0.6.9" to clipboard
lemon_engine: ^0.6.9 copied to clipboard

build canvas games for the web

95/ 160
pub points
27
downloads

We analyzed this package 33 hours ago, and awarded it 95 pub points (of a possible 160):

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

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 50 to 180 characters to describe the package, what it does, and its target use case.

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

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` does not contain reference to the current version ("0.6.9").

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

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

Detected license: BSD-3-Clause.

Failed report section
Provide documentation
0 / 20trigger folding of the section

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

33 out of 220 API elements (15.0 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: lemon_engine, lemon_engine.BasicWidgetBuilder, lemon_engine.CallbackOnScreenSizeChanged, lemon_engine.CursorType, lemon_engine.CustomCanvas.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

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

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:lemon_engine/lemon_engine.dart that imports:
  • package:lemon_engine/src/src.dart that imports:
  • package:lemon_engine/src/lemon_engine.dart that imports:
  • package:universal_html/html.dart that imports:
  • package:universal_html/universal_html.dart that imports:
  • package:universal_html/src/_sdk/html.dart that imports:
  • package:universal_html/src/_sdk_html_additions.dart that imports:
  • dart:io
Failed report section
Pass static analysis
30 / 50trigger folding of the section

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

Found 12 issues. Showing the first 2:

WARNING: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: LemonEngine.onPointerScrolled, LemonEngine.onPointerSignalEvent, LemonEngine.onError, LemonEngine.updateTimer, LemonEngine.buildContext, LemonEngine.canvas, LemonEngine._bufferImage, LemonEngine._bufferBlendMode, LemonEngine._initialized, LemonEngine._keyboardEventHandlerRegistered, LemonEngine.textPainter, LemonEngine.lastRenderTime, LemonEngine.lastUpdateTime, LemonEngine.minMSPerRender, LemonEngine.mouseOverCanvas, LemonEngine.touchDownId, LemonEngine.touchHeldId, LemonEngine.scrollSensitivity, LemonEngine.cameraSmoothFollow, LemonEngine.zoomSensitivity, LemonEngine.targetZoom, LemonEngine.zoomOnScroll, LemonEngine.mousePositionX, LemonEngine.mousePositionY, LemonEngine.previousMousePositionX, LemonEngine.previousMousePositionY, LemonEngine.mouseLeftDownFrames, LemonEngine.zoom, LemonEngine.zoomMin, LemonEngine.zoomMax, LemonEngine.drawCanvasAfterUpdate, LemonEngine.cameraX, LemonEngine.cameraY, LemonEngine.updateFrame, LemonEngine.Screen_Top, LemonEngine.Screen_Right, LemonEngine.Screen_Bottom, LemonEngine.Screen_Left, LemonEngine._initCallAmount, LemonEngine.bufferIndex, LemonEngine.batchesRendered, LemonEngine.batches1Rendered, LemonEngine.batches2Rendered, LemonEngine.batches4Rendered, LemonEngine.batches8Rendered, LemonEngine.batches16Rendered, LemonEngine.batches32Rendered, LemonEngine.batches64Rendered, LemonEngine.batches128Rendered, LemonEngine.appBuilder, LemonEngine.appInitialized, LemonEngine.internalBuild, LemonEngine.internalBuildCreated, LemonEngine.buildingInternal

lib/src/lemon_engine.dart:16:16

   ╷
16 │ abstract class LemonEngine extends StatelessWidget {
   │                ^^^^^^^^^^^
   ╵

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

INFO: Statements in an if should be enclosed in a block.

lib/src/functions/get_image_byte_buffer.dart:8:5

  ╷
8 │     throw Exception();
  │     ^^^^^^^^^^^^^^^^^^
  ╵

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

Failed report section
Support up-to-date dependencies
30 / 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
image ^4.2.0 4.7.2 4.7.2
lemon_watch 1.1.5 1.1.5 1.1.5
shared_preferences ^2.2.3 2.5.4 2.5.4
universal_html ^2.2.4 2.3.0 2.3.0
url_strategy ^0.2.0 0.2.0 0.3.0 Discontinued
Transitive dependencies
Package Constraint Compatible Latest Notes
archive - 4.0.7 4.0.7
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
charcode - 1.4.0 1.4.0
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
csslib - 1.0.2 1.0.2
ffi - 2.1.5 2.1.5
file - 7.0.1 7.0.1
html - 0.15.6 0.15.6
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.18.0
path - 1.9.1 1.9.1
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
petitparser - 7.0.1 7.0.1
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
posix - 6.0.3 6.0.3
shared_preferences_android - 2.4.18 2.4.18
shared_preferences_foundation - 2.5.6 2.5.6
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.1 2.4.1
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
source_span - 1.10.1 1.10.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
universal_io - 2.3.1 2.3.1
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
xdg_directories - 1.1.0 1.1.0
xml - 6.6.1 6.6.1

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

The constraint `^0.2.0` on url_strategy does not support the stable version `0.3.0`.

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

The package has one or more discontinued direct dependencies.

Discontinued packages are no longer maintained, and can end up being a liability.

Consider migrating away from these dependencies:

  • url_strategy.

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.8, Flutter 3.38.6, Dart 3.10.7.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
6
likes
95
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

build canvas games for the web

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, image, lemon_watch, shared_preferences, universal_html, url_strategy

More

Packages that depend on lemon_engine