device_preview 0.8.0 copy "device_preview: ^0.8.0" to clipboard
device_preview: ^0.8.0 copied to clipboard

outdated

Approximate how your Flutter app looks and performs on another device.

3884
likes
80/ 160
pub points
99%
popularity

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

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

173 out of 301 API elements (57.5 %) have documentation comments.

Some symbols that are missing documentation: device_preview, device_preview.AndroidDevices.all, device_preview.AndroidDevices.large, device_preview.AndroidDevices.medium, device_preview.AndroidDevices.nexus9.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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:device_preview/device_preview.dart that imports:
  • package:device_preview/src/views/device_preview_style.dart that imports:
  • package:device_preview/src/state/store.dart that imports:
  • package:device_frame/device_frame.dart that imports:
  • package:device_frame/src/frame.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

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 82 issues. Showing the first 2:

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

lib/src/views/tool_bar/menus/devices.dart:182:40

    ╷
182 │                 color: theme.textTheme.button!.color!.withOpacity(0.4),
    │                                        ^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/views/tool_bar/menus/devices.dart

WARNING: Duplicate export.

lib/device_preview.dart:8:8

  ╷
8 │ export 'src/storage/file.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/device_preview.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_frame ^0.5.0 0.5.2 1.2.0
flutter flutter 0.0.0 0.0.0
flutter_localizations flutter 0.0.0 0.0.0
freezed_annotation ^0.15.0 0.15.0 2.4.4
http ^0.13.0 0.13.6 1.2.2
json_annotation ^4.3.0 4.9.0 4.9.0
path ^1.8.0 1.9.0 1.9.1
path_drawing ^0.5.1 0.5.1+1 1.0.1
path_provider ^2.0.1 2.1.5 2.1.5
provider ^5.0.0 5.0.0 6.1.2
shared_preferences ^2.0.8 2.3.2 2.3.2
Transitive dependencies
Package Constraint Compatible Latest
async - 2.12.0 2.12.0
characters - 1.3.0 1.3.1
clock - 1.1.1 1.1.2
collection - 1.18.0 1.19.1
ffi - 2.1.3 2.1.3
file - 7.0.1 7.0.1
flutter_svg - 0.23.0+1 2.0.14
flutter_web_plugins - 0.0.0 0.0.0
http_parser - 4.0.2 4.1.1
intl - 0.19.0 0.19.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
nested - 1.0.0 1.0.0
path_parsing - 0.2.1 1.1.0
path_provider_android - 2.2.12 2.2.12
path_provider_foundation - 2.4.0 2.4.0
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 - 5.4.0 6.0.2
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
shared_preferences_android - 2.3.3 2.3.3
shared_preferences_foundation - 2.5.3 2.5.3
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.1 2.4.1
shared_preferences_web - 2.4.2 2.4.2
shared_preferences_windows - 2.4.1 2.4.1
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
string_scanner - 1.4.0 1.4.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
web - 1.1.0 1.1.0
xdg_directories - 1.1.0 1.1.0
xml - 5.4.1 6.5.0

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

Found 5 issues. Showing the first 2:

The constraint `^0.5.0` on device_frame does not support the stable version `0.6.0`.

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

The constraint `^0.15.0` on freezed_annotation does not support the stable version `1.0.0`.

Try running dart pub upgrade --major-versions freezed_annotation 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/views/tool_bar/menus/devices.dart:182:40 - The getter 'button' 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.15, Flutter 3.24.4, Dart 3.5.4.

Check the analysis log for details.