real_ruler 0.0.3 copy "real_ruler: ^0.0.3" to clipboard
real_ruler: ^0.0.3 copied to clipboard

A ruler is a widget that displays a ruler with a given distance in cm or inches

2
likes
70/ 160
pub points
58%
popularity

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

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: real_ruler,
    • contains a version property, and,
    • does not contain a publish_to property.

Repository has no matching pubspec.yaml with name: real_ruler.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

43 out of 101 API elements (42.6 %) have documentation comments.

Some symbols that are missing documentation: ruler, ruler.Centimeter, ruler.Centimeter.Centimeter, ruler.Centimeter.Centimeter.fromJson, ruler.Centimeter.copyWith.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:real_ruler/real_ruler.dart that imports:
  • package:real_ruler/src/ruler.dart that imports:
  • package:real_ruler/src/inch.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus/src/device_info_plus_windows.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `iOS`.

Because:

  • package:real_ruler/real_ruler.dart that imports:
  • package:real_ruler/src/ruler.dart that imports:
  • package:real_ruler/src/inch.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus/src/device_info_plus_windows.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `Linux`.

Because:

  • package:real_ruler/real_ruler.dart that imports:
  • package:real_ruler/src/ruler.dart that imports:
  • package:real_ruler/src/inch.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus/src/device_info_plus_windows.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `macOS`.

Because:

  • package:real_ruler/real_ruler.dart that imports:
  • package:real_ruler/src/ruler.dart that imports:
  • package:real_ruler/src/inch.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus/src/device_info_plus_windows.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package not compatible with platform Web

Because:

  • package:real_ruler/real_ruler.dart that imports:
  • package:real_ruler/src/ruler.dart that imports:
  • package:real_ruler/src/inch.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus/src/device_info_plus_linux.dart that imports:
  • package:file/local.dart that imports:
  • package:file/src/backends/local.dart that imports:
  • package:file/src/backends/local/local_file_system.dart that imports:
  • package:file/src/backends/local/local_link.dart that imports:
  • package:file/src/backends/local/local_file_system_entity.dart that imports:
  • package:file/src/backends/local/local_file.dart that imports:
  • package:file/src/io.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

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

Found 8 issues. Showing the first 2:

ERROR: The getter 'bodyText2' isn't defined for the type 'TextTheme'.

lib/src/default_theme.dart:33:50

   ╷
33 │     numberTextStyle: Theme.of(context).textTheme.bodyText2!,
   │                                                  ^^^^^^^^^
   ╵

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

WARNING: The parameter type of '==' operators should be non-nullable.

lib/src/distance_unit.freezed.dart:165:17

    ╷
165 │   bool operator ==(dynamic other) {
    │                 ^^
    ╵

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

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

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

Package Constraint Compatible Latest
device_info_plus ^8.1.0 8.2.2 10.1.2
flutter flutter 0.0.0 0.0.0
freezed_annotation ^2.2.0 2.4.4 2.4.4
json_annotation ^4.8.0 4.9.0 4.9.0
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.3.0
collection - 1.18.0 1.19.0
device_info_plus_platform_interface - 7.0.1 7.0.1
ffi - 2.1.3 2.1.3
file - 6.1.4 7.0.0
flutter_web_plugins - 0.0.0 0.0.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.15.0
path - 1.9.0 1.9.0
plugin_platform_interface - 2.1.8 2.1.8
sky_engine - 0.0.99 0.0.99
vector_math - 2.1.4 2.1.4
win32 - 4.1.4 5.5.4

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

The constraint `^8.1.0` on device_info_plus does not support the stable version `9.0.0`.

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

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • UNDEFINED_GETTER - lib/src/default_theme.dart:33:50 - The getter 'bodyText2' isn't defined for the type 'TextTheme'.

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.22.12, Flutter 3.24.2, Dart 3.5.2.

Check the analysis log for details.

2
likes
70
pub points
58%
popularity

Publisher

unverified uploader

A ruler is a widget that displays a ruler with a given distance in cm or inches

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

device_info_plus, flutter, freezed_annotation, json_annotation

More

Packages that depend on real_ruler