inai_flutter_sdk 0.1.6
inai_flutter_sdk: ^0.1.6 copied to clipboard
Inai Flutter SDK
We analyzed this package 6 days ago, and awarded it 80 pub points (of a possible 160):
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 50 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/inaitech/inai-flutter-sdk
was unreachable. Make sure that the website is reachable via HEAD
requests.
Documentation URL doesn't exist.
At the time of the analysis https://docs.inai.io/docs/flutter
was unreachable. Make sure that the website is reachable via HEAD
requests.
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
.
0/10 points: 20% or more of the public API has dartdoc comments
3 out of 222 API elements (1.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: inai_flutter_sdk
, inai_flutter_sdk.GooglePayEnvironment
, inai_flutter_sdk.InaiApplePayRequest
, inai_flutter_sdk.InaiApplePayRequest.InaiApplePayRequest.new
, inai_flutter_sdk.InaiApplePayRequest.applePayPaymentMethod
.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add 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:inai_flutter_sdk/inai_flutter_sdk.dart
that declares support for platforms:Android
,iOS
.
Package does not support platform `Linux`.
Because:
package:inai_flutter_sdk/inai_flutter_sdk.dart
that declares support for platforms:Android
,iOS
.
Package does not support platform `macOS`.
Because:
package:inai_flutter_sdk/inai_flutter_sdk.dart
that declares support for platforms:Android
,iOS
.
Package does not support platform `Web`.
Because:
package:inai_flutter_sdk/inai_flutter_sdk.dart
that 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:inai_flutter_sdk/inai_flutter_sdk.dart
that imports:package:inai_flutter_sdk/src/inai_checkout.dart
that imports:package:pay/pay.dart
that imports:package:pay_ios/pay_ios.dart
that declares support for platforms:iOS
.
Package does not support platform `iOS`.
Because:
package:inai_flutter_sdk/inai_flutter_sdk.dart
that imports:package:inai_flutter_sdk/src/inai_checkout.dart
that imports:package:pay/pay.dart
that imports:package:pay_android/pay_android.dart
that declares support for platforms:Android
.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:inai_flutter_sdk/inai_flutter_sdk.dart
that imports:package:inai_flutter_sdk/src/inai_crypto.dart
that imports:package:inai_flutter_sdk/src/inai_checkout_widget.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.cn/web/wasm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 7 issues. Showing the first 2:
WARNING: The '!' will have no effect because the receiver can't be null.
lib/src/inai_checkout.dart:428:17
╷
428 │ overlayState!.insert(overlayEntry);
│ ^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/inai_checkout.dart
WARNING: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: InaiCheckoutWidget.overlayFinished
lib/src/inai_checkout_widget.dart:39:7
╷
39 │ class InaiCheckoutWidget extends StatefulWidget {
│ ^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/inai_checkout_widget.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
http |
^1.1.0 |
1.5.0 | 1.5.0 | |
pay |
^1.1.0 |
1.1.2 | 3.2.1 | |
url_launcher |
^6.0.3 |
6.3.2 | 6.3.2 | |
webview_flutter |
^4.2.4 |
4.13.0 | 4.13.0 | |
yaml |
^3.1.1 |
3.1.3 | 3.1.3 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
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 | |
flutter_svg |
- | 2.2.1 | 2.2.1 | |
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.16.0 | 1.17.0 | |
path |
- | 1.9.1 | 1.9.1 | |
path_parsing |
- | 1.1.0 | 1.1.0 | |
pay_android |
- | 1.0.11 | 3.1.1 | |
pay_ios |
- | 1.0.11 | 1.1.0 | |
pay_platform_interface |
- | 1.0.4 | 2.0.0 | |
petitparser |
- | 7.0.1 | 7.0.1 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
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 | |
url_launcher_android |
- | 6.3.24 | 6.3.24 | |
url_launcher_ios |
- | 6.3.4 | 6.3.4 | |
url_launcher_linux |
- | 3.2.1 | 3.2.1 | |
url_launcher_macos |
- | 3.2.3 | 3.2.3 | |
url_launcher_platform_interface |
- | 2.3.2 | 2.3.2 | |
url_launcher_web |
- | 2.4.1 | 2.4.1 | |
url_launcher_windows |
- | 3.1.4 | 3.1.4 | |
vector_graphics |
- | 1.1.19 | 1.1.19 | |
vector_graphics_codec |
- | 1.1.13 | 1.1.13 | |
vector_graphics_compiler |
- | 1.1.19 | 1.1.19 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
web |
- | 1.1.1 | 1.1.1 | |
webview_flutter_android |
- | 4.10.5 | 4.10.5 | |
webview_flutter_platform_interface |
- | 2.14.0 | 2.14.0 | |
webview_flutter_wkwebview |
- | 3.23.1 | 3.23.1 | |
xml |
- | 6.6.1 | 6.6.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^1.1.0` on pay does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions pay
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 3 errors:
UNDEFINED_METHOD
-lib/src/inai_checkout_widget.dart:303:32
- The method 'canLaunchUrl' isn't defined for the type '_InaiCheckoutWidgetState'.UNDEFINED_METHOD
-lib/src/inai_checkout_widget.dart:310:13
- The method 'launchUrl' isn't defined for the type '_InaiCheckoutWidgetState'.UNDEFINED_METHOD
-lib/src/inai_checkout_widget.dart:373:18
- The method 'canLaunchUrl' isn't defined for the type '_InaiCheckoutWidgetState'.
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.22.23
, Flutter 3.35.5
, Dart 3.9.2
.
Check the analysis log for details.