flutter_snake 1.0.0 copy "flutter_snake: ^1.0.0" to clipboard
flutter_snake: ^1.0.0 copied to clipboard

A simple snake game.

100/ 160
pub points
125
downloads

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

Failed report section
Follow Dart file conventions
20 / 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

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

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

Detected license: MIT.

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

3 out of 24 API elements (12.5 %) 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: flutter_snake, flutter_snake.GAME_EVENT, flutter_snake.SNAKE_DIRECTION, flutter_snake.SnakeGame, flutter_snake.SnakeGame.SnakeGame.new.

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:flutter_snake/flutter_snake.dart that imports:
  • package:flutter_snake/src/snake_game.dart that imports:
  • package:flutter_svg/flutter_svg.dart that imports:
  • package:flutter_svg/svg.dart that imports:
  • package:flutter_svg/src/picture_provider.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 25 issues. Showing the first 2:

WARNING: Unused import: 'dart:io'.

lib/src/snake_game.dart:2:8

  ╷
2 │ import 'dart:io';
  │        ^^^^^^^^^
  ╵

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

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: SnakeGame._direction, SnakeGame.caseWidth, SnakeGame.durationBetweenTicks

lib/src/snake_game.dart:11:7

   ╷
11 │ class SnakeGame extends StatefulWidget {
   │       ^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/snake_game.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
flutter_svg ^0.22.0 0.22.0 2.2.3
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.17.0
path_drawing - 0.5.1+1 1.0.1
path_parsing - 0.2.1 1.1.0
petitparser - 5.4.0 7.0.1
vector_math - 2.2.0 2.2.0
xml - 5.4.1 6.6.1

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

The constraint `^0.22.0` on flutter_svg does not support the stable version `0.23.0`.

Try running dart pub upgrade --major-versions flutter_svg 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.3, Flutter 3.38.4, Dart 3.10.3.

Check the analysis log for details.

Weekly downloads

Display as:
By versions: