mediatemplate 0.0.16
mediatemplate: ^0.0.16 copied to clipboard
Package used to show media template on Flutter app. Support all template for media template. Provide function show and Container that developer can use to show anywhere in app.
We analyzed this package 4 hours ago, and awarded it 115 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` does not contain reference to the current version ("0.0.16").
Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.
10/10 points: Use an OSI-approved license
Detected license: MIT.
0/10 points: 20% or more of the public API has dartdoc comments
3 out of 47 API elements (6.4 %) 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: mediatemplate, mediatemplate.AdCallbackChangRoute, mediatemplate.AdCallbackFailed, mediatemplate.AdCallbackLoaded, mediatemplate.AdInfo.
10/10 points: Package has an example
20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:mediatemplate/mediatemplate.dartthat imports:package:mediatemplate/src/ads.dartthat imports:package:mediatemplate/src/template.dartthat imports:package:webview_flutter/webview_flutter.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Linux`.
Because:
package:mediatemplate/mediatemplate.dartthat imports:package:mediatemplate/src/ads.dartthat imports:package:mediatemplate/src/template.dartthat imports:package:webview_flutter/webview_flutter.dartthat declares support for platforms:Android,iOS.
Package does not support platform `macOS`.
Because:
package:mediatemplate/mediatemplate.dartthat imports:package:mediatemplate/src/ads.dartthat imports:package:mediatemplate/src/template.dartthat imports:package:webview_flutter/webview_flutter.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Web`.
Because:
package:mediatemplate/mediatemplate.dartthat imports:package:mediatemplate/src/ads.dartthat imports:package:mediatemplate/src/template.dartthat imports:package:webview_flutter/webview_flutter.dartthat declares support for platforms:Android,iOS.
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:mediatemplate/mediatemplate.dartthat imports:package:mediatemplate/src/ads.dartthat imports:package:mediatemplate/src/template.dartthat imports:package:webview_flutter/webview_flutter.dartthat imports:package:webview_flutter/src/webview.dartthat imports:package:webview_flutter_wkwebview/webview_flutter_wkwebview.dartthat declares support for platforms:iOS.
Package does not support platform `iOS`.
Because:
package:mediatemplate/mediatemplate.dartthat imports:package:mediatemplate/src/ads.dartthat imports:package:mediatemplate/src/template.dartthat imports:package:webview_flutter/webview_flutter.dartthat imports:package:webview_flutter/src/webview.dartthat imports:package:webview_flutter_android/webview_surface_android.dartthat declares support for platforms:Android.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
WARNING: Braces unnecessarily wrap this expression in a set literal.
lib/src/ads.dart:39:35
╷
39 │ webContents.forEach((k, v) => {
│ ┌───────────────────────────────────^
40 │ │ if (v['javascript'] != '')
41 │ │ {
42 │ │ ads.add(AdInfo.fromJson(portalId, propsId, zoneCode, userId,
43 │ │ items, dims, extra, v as Map<String, dynamic>))
44 │ │ }
45 │ │ });
│ └─────────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/ads.dart
INFO: The argument type 'num' isn't related to 'String'.
lib/src/frequency.dart:164:32
╷
164 │ if (zoneFreq.containsKey(zoneId)) {
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/frequency.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
http |
^0.13.5 |
0.13.6 | 1.6.0 | |
shared_preferences |
^2.1.1 |
2.5.4 | 2.5.4 | |
url_launcher |
^6.1.5 |
6.3.2 | 6.3.2 | |
webview_flutter |
^3.0.4 |
3.0.4 | 4.13.1 |
Transitive dependencies
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^0.13.5` on http does not support the stable version `1.0.0`.
Try running dart pub upgrade --major-versions http to update the constraint.
The constraint `^3.0.4` on webview_flutter does not support the stable version `4.0.0`.
Try running dart pub upgrade --major-versions webview_flutter to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.11, Flutter 3.41.4, Dart 3.11.1.
Check the analysis log for details.