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.

3599
likes
80/ 140
pub points
99%
popularity

We analyzed this package 5 days ago, and awarded it 80 pub points (of a possible 140):

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 305 API elements (56.7 %) 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

OK
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
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 / 20trigger 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.1.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.1
http ^0.13.0 0.13.6 1.2.1
json_annotation ^4.3.0 4.9.0 4.9.0
path ^1.8.0 1.9.0 1.9.0
path_drawing ^0.5.1 0.5.1+1 1.0.1
path_provider ^2.0.1 2.1.3 2.1.3
provider ^5.0.0 5.0.0 6.1.2
shared_preferences ^2.0.8 2.2.3 2.2.3
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
characters - 1.3.0 1.3.0
clock - 1.1.1 1.1.1
collection - 1.18.0 1.18.0
ffi - 2.1.2 2.1.2
file - 7.0.0 7.0.0
flutter_svg - 0.23.0+1 2.0.10+1
flutter_web_plugins - 0.0.0 0.0.0
http_parser - 4.0.2 4.0.2
intl - 0.19.0 0.19.0
material_color_utilities - 0.8.0 0.11.1
meta - 1.12.0 1.15.0
nested - 1.0.0 1.0.0
path_parsing - 0.2.1 1.0.1
path_provider_android - 2.2.4 2.2.4
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.2.1 2.2.1
petitparser - 5.4.0 6.0.2
platform - 3.1.4 3.1.4
plugin_platform_interface - 2.1.8 2.1.8
shared_preferences_android - 2.2.2 2.2.2
shared_preferences_foundation - 2.4.0 2.4.0
shared_preferences_linux - 2.3.2 2.3.2
shared_preferences_platform_interface - 2.3.2 2.3.2
shared_preferences_web - 2.3.0 2.3.0
shared_preferences_windows - 2.3.2 2.3.2
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
vector_math - 2.1.4 2.1.4
web - 0.5.1 0.5.1
win32 - 5.5.1 5.5.1
xdg_directories - 1.0.4 1.0.4
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

Analyzed with Pana 0.22.3, Flutter 3.22.0, Dart 3.4.0.

Check the analysis log for details.