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
140/ 160
pub points
10%
popularity

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

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

failed
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

0/0 points: WASM compatibility

Package not compatible with runtime wasm

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

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

0/0 points: Swift Package Manager support

Package does not support the Swift Package Manager on iOS

It does not contain ios/unity_widget/Package.swift.

This package for iOS or macOS does not support the Swift Package Manager. It will not receive full points in a future version of the scoring model.

See https://docs.flutter.dev/to/spm for details.

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
40 / 40trigger 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.12.0 2.12.0
characters - 1.3.0 1.3.1
charcode - 1.4.0 1.4.0
collection - 1.18.0 1.19.1
crypto - 3.0.6 3.0.6
csslib - 1.0.2 1.0.2
html - 0.15.5 0.15.5
http - 0.13.6 1.2.2
http_parser - 4.0.2 4.1.1
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
path - 1.9.1 1.9.1
plugin_platform_interface - 2.1.8 2.1.8
pointer_interceptor - 0.9.3+7 0.10.1+2
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
universal_io - 2.2.2 2.2.2
uuid - 3.0.7 4.5.1
vector_math - 2.1.4 2.1.4
webview_flutter - 2.8.0 4.10.0
webview_flutter_android - 2.10.4 4.1.0
webview_flutter_platform_interface - 1.9.5 2.10.0
webview_flutter_wkwebview - 2.9.5 3.16.2

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.15, Flutter 3.24.5, Dart 3.5.4.

Check the analysis log for details.