khalti_sdk 1.0.2
khalti_sdk: ^1.0.2 copied to clipboard
An official Flutter plugin for Khalti Payment Gateway, combining core functionalities and Flutter UI into a single unified package.
We analyzed this package 5 days ago, and awarded it 140 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: BSD-3-Clause.
10/10 points: 20% or more of the public API has dartdoc comments
107 out of 109 API elements (98.2 %) have documentation comments.
Some symbols that are missing documentation: khalti_sdk, khalti_sdk.KhaltiClient.KhaltiClient.new.
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:khalti_sdk/khalti_sdk.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Linux`.
Because:
package:khalti_sdk/khalti_sdk.dartthat declares support for platforms:Android,iOS.
Package does not support platform `macOS`.
Because:
package:khalti_sdk/khalti_sdk.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Web`.
Because:
package:khalti_sdk/khalti_sdk.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:khalti_sdk/khalti_sdk.dartthat imports:package:khalti_sdk/src/core/config/config.dartthat imports:package:khalti_sdk/src/core/config/khalti_config.dartthat imports:package:khalti_sdk/src/core/util/utils.dartthat imports:package:khalti_sdk/src/core/util/package_util.dartthat imports:package:package_info_plus/package_info_plus.dartthat imports:package:package_info_plus/src/package_info_plus_windows.dartthat imports:package:package_info_plus/src/file_version_info.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `iOS`.
Because:
package:khalti_sdk/khalti_sdk.dartthat imports:package:khalti_sdk/src/core/config/config.dartthat imports:package:khalti_sdk/src/core/config/khalti_config.dartthat imports:package:khalti_sdk/src/core/util/utils.dartthat imports:package:khalti_sdk/src/core/util/package_util.dartthat imports:package:package_info_plus/package_info_plus.dartthat imports:package:package_info_plus/src/package_info_plus_windows.dartthat imports:package:package_info_plus/src/file_version_info.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
30/50 points: code has no errors, warnings, lints, or formatting issues
WARNING: Returning a 'Future' without 'await' inside a try block.
lib/src/flutter/data/core/exception_handler.dart:25:5
╷
25 │ return onPaymentResult(
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/flutter/data/core/exception_handler.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
device_info_plus |
^13.1.0 |
13.2.0 | 13.2.0 | |
equatable |
^2.0.8 |
2.1.0 | 2.1.0 | |
flutter_inappwebview |
^6.1.5 |
6.1.5 | 6.1.5 | |
http |
^1.6.0 |
1.6.0 | 1.6.0 | |
internet_connection_checker_plus |
^3.0.0 |
3.1.1 | 3.1.1 | |
meta |
^1.17.0 |
1.19.0 | 1.19.0 | |
package_info_plus |
^10.1.0 |
10.2.1 | 10.2.1 | |
url_launcher |
^6.3.2 |
6.3.2 | 6.3.2 |
Transitive dependencies
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.23.18, Flutter 3.47.0, Dart 3.13.0.
Check the analysis log for details.