device_preview 0.8.0
device_preview: ^0.8.0 copied to clipboard
Approximate how your Flutter app looks and performs on another device.
We analyzed this package 10 days ago, and awarded it 80 pub points (of a possible 160):
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.
10/10 points: 20% or more of the public API has dartdoc comments
173 out of 311 API elements (55.6 %) 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
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.dartthat imports:package:device_preview/src/views/device_preview_style.dartthat imports:package:device_preview/src/state/store.dartthat imports:package:device_frame/device_frame.dartthat imports:package:device_frame/src/frame.dartthat imports:package:flutter_svg/flutter_svg.dartthat imports:package:flutter_svg/svg.dartthat imports:package:flutter_svg/src/picture_provider.dartthat imports:dart:io
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 112 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
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
device_frame |
^0.5.0 |
0.5.2 | 1.4.0 | |
freezed_annotation |
^0.15.0 |
0.15.0 | 3.1.0 | |
http |
^0.13.0 |
0.13.6 | 1.6.0 | |
json_annotation |
^4.3.0 |
4.9.0 | 4.9.0 | |
path |
^1.8.0 |
1.9.1 | 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.5+1 | |
shared_preferences |
^2.0.8 |
2.5.4 | 2.5.4 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
async |
- | 2.13.0 | 2.13.0 | |
characters |
- | 1.4.0 | 1.4.1 | |
clock |
- | 1.1.2 | 1.1.2 | |
collection |
- | 1.19.1 | 1.19.1 | |
ffi |
- | 2.1.4 | 2.1.4 | |
file |
- | 7.0.1 | 7.0.1 | |
flutter_svg |
- | 0.23.0+1 | 2.2.3 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
intl |
- | 0.20.2 | 0.20.2 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.17.0 | 1.17.0 | |
nested |
- | 1.0.0 | 1.0.0 | |
path_parsing |
- | 0.2.1 | 1.1.0 | |
path_provider_android |
- | 2.2.22 | 2.2.22 | |
path_provider_foundation |
- | 2.5.1 | 2.5.1 | |
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 | 7.0.1 | |
platform |
- | 3.1.6 | 3.1.6 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
shared_preferences_android |
- | 2.4.18 | 2.4.18 | |
shared_preferences_foundation |
- | 2.5.6 | 2.5.6 | |
shared_preferences_linux |
- | 2.4.1 | 2.4.1 | |
shared_preferences_platform_interface |
- | 2.4.1 | 2.4.1 | |
shared_preferences_web |
- | 2.4.3 | 2.4.3 | |
shared_preferences_windows |
- | 2.4.1 | 2.4.1 | |
source_span |
- | 1.10.1 | 1.10.1 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
web |
- | 1.1.1 | 1.1.1 | |
xdg_directories |
- | 1.1.0 | 1.1.0 | |
xml |
- | 5.4.1 | 6.6.1 |
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.23.3, Flutter 3.38.4, Dart 3.10.3.
Check the analysis log for details.