unity_widget 1.0.4 copy "unity_widget: ^1.0.4" to clipboard
unity_widget: ^1.0.4 copied to clipboard

discontinuedreplaced by: flutter_unity_widget

Embed Unity into Flutter iOS, Android and Web

15
likes
120/ 140
pub points
7%
popularity

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

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Homepage URL doesn't exist.

At the time of the analysis https://github.com/applogik/unity_widget was unreachable. Make sure that the website is reachable via HEAD requests.

Repository URL doesn't exist.

At the time of the analysis https://github.com/applogik/unity_widget was unreachable. Make sure that the website is reachable via HEAD requests.

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/applogik/unity_widget/issues was unreachable. Make sure that the website is reachable via HEAD requests.

Failed to verify repository URL.

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

Unable to access git repository: Failed to run remote show origin.

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: BSD-3-Clause.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

7 out of 29 API elements (24.1 %) have documentation comments.

Some symbols that are missing documentation: unity_web_controller, unity_web_controller.UnityWebController, unity_web_controller.UnityWebController.UnityWebController, unity_web_controller.UnityWebController.dispose, unity_web_controller.UnityWebController.refreshUnityView.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Web

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:unity_widget/unity_widget.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `Linux`.

Because:

  • package:unity_widget/unity_widget.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `macOS`.

Because:

  • package:unity_widget/unity_widget.dart that declares support for platforms: Android, iOS, Web.

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:unity_widget/unity_widget.dart that imports:
  • package:unity_widget/web/unity_web_widget.dart that imports:
  • package:webviewx/webviewx.dart that imports:
  • package:webviewx/src/view/view.dart that imports:
  • package:webviewx/src/view/impl/io.dart that imports:
  • package:webviewx/src/view/impl/mobile.dart that imports:
  • package:webviewx/src/controller/impl/mobile.dart that imports:
  • package:webview_flutter/webview_flutter.dart that imports:
  • package:webview_flutter/src/webview.dart that imports:
  • package:webview_flutter_wkwebview/webview_flutter_wkwebview.dart that declares support for platforms: iOS.
Package does not support platform `iOS`.

Because:

  • package:unity_widget/unity_widget.dart that imports:
  • package:unity_widget/web/unity_web_widget.dart that imports:
  • package:webviewx/webviewx.dart that imports:
  • package:webviewx/src/view/view.dart that imports:
  • package:webviewx/src/view/impl/io.dart that imports:
  • package:webviewx/src/view/impl/mobile.dart that imports:
  • package:webviewx/src/controller/impl/mobile.dart that imports:
  • package:webview_flutter/webview_flutter.dart that imports:
  • package:webview_flutter/src/webview.dart that imports:
  • package:webview_flutter_android/webview_android_cookie_manager.dart that declares support for platforms: Android.
Package not compatible with platform Web

Because:

  • package:unity_widget/unity_widget.dart that imports:
  • package:unity_widget/web/unity_web_widget.dart that imports:
  • package:unity_widget/web/unity_web_controller.dart that imports:
  • package:universal_html/html.dart that imports:
  • package:universal_html/src/_sdk/html.dart that imports:
  • package:universal_html/src/_sdk_html_additions.dart that imports:
  • dart:io
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

INFO: Use the generic function type syntax in 'typedef's.

lib/unity_widget.dart:76:14

   ╷
76 │ typedef void UnityViewCreatedCallback(
   │              ^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

INFO: Use the generic function type syntax in 'typedef's.

lib/unity_widget.dart:79:14

   ╷
79 │ typedef void UnityViewReattachedCallback(
   │              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

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

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
flutter_web_plugins flutter 0.0.0 0.0.0
io ^1.0.3 1.0.4 1.0.4
universal_html ^2.0.8 2.2.4 2.2.4
webviewx ^0.2.1 0.2.2 0.2.2
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
characters - 1.3.0 1.3.0
charcode - 1.3.1 1.3.1
collection - 1.18.0 1.18.0
crypto - 3.0.3 3.0.3
csslib - 1.0.0 1.0.0
html - 0.15.4 0.15.4
http - 0.13.6 1.2.1
http_parser - 4.0.2 4.0.2
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.12.0
path - 1.9.0 1.9.0
plugin_platform_interface - 2.1.8 2.1.8
pointer_interceptor - 0.9.3+7 0.10.1
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
universal_io - 2.2.2 2.2.2
uuid - 3.0.7 4.3.3
vector_math - 2.1.4 2.1.4
webview_flutter - 2.8.0 4.7.0
webview_flutter_android - 2.10.4 3.16.0
webview_flutter_platform_interface - 1.9.5 2.10.0
webview_flutter_wkwebview - 2.9.5 3.13.0

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

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.2, Flutter 3.19.2, Dart 3.3.0.

Check the analysis log for details.