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

easily detect device type out of tablet/phablet/mobile. used size and orientation based logic

130/ 160
pub points
75
downloads

We analyzed this package 4 days ago, and awarded it 130 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

Failed to verify repository URL.

pubspec.yaml from the repository has a repository or homepage field "www.google.com" but cannot be parsed as a repository URL: Invalid repository URL: Could not recognize URL segments: www.google.com. Please report at pana.

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: get_devicetype_onex,
    • contains a version property, and,
    • does not contain a publish_to property.

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.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

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

0 out of 5 API elements (0.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: get_devicetype_onex, get_devicetype_onex.GetDeviceTypeOnex, get_devicetype_onex.GetDeviceTypeOnex.GetDeviceTypeOnex.new, get_devicetype_onex.GetDeviceTypeOnex.getDeviceOrientation, get_devicetype_onex.GetDeviceTypeOnex.isTabletPhabletOrMobile.

Passed check 10/10 points: Package has an example

Failed 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 does not support platform `Web`.

Because:

  • package:get_devicetype_onex/get_devicetype_onex.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

Failed check 0/0 points: Swift Package Manager support

Package does not support the Swift Package Manager on macOS

It does not contain macos/get_devicetype_onex/Package.swift.

This package for iOS or macOS does not support the Swift Package Manager. It will not receive full points in a future version of the scoring model.

See https://docs.flutter.dev/to/spm 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

Found 10 issues. Showing the first 2:

INFO: Don't invoke 'print' in production code.

lib/get_devicetype_onex.dart:13:5

   ╷
13 │     print("sumit screenwidth ====> ${screenWidth}");
   │     ^^^^^
   ╵

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

INFO: Unnecessary braces in a string interpolation.

lib/get_devicetype_onex.dart:13:36

   ╷
13 │     print("sumit screenwidth ====> ${screenWidth}");
   │                                    ^^^^^^^^^^^^^^
   ╵

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

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

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

Package Constraint Compatible Latest Notes
plugin_platform_interface ^2.0.2 2.1.8 2.1.8
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
vector_math - 2.2.0 2.2.0

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

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.2, Dart 3.10.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
130
points
75
downloads

Publisher

unverified uploader

Weekly Downloads

easily detect device type out of tablet/phablet/mobile. used size and orientation based logic

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on get_devicetype_onex

Packages that implement get_devicetype_onex