这是indexloc提供的服务,不要输入任何密码

nagad_payment_gateway 0.3.1 copy "nagad_payment_gateway: ^0.3.1" to clipboard
nagad_payment_gateway: ^0.3.1 copied to clipboard

A Flutter package for Nagad Online Payment API (Sandbox) Integration

130/ 160
pub points
61
downloads

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

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: GPL-3.0.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

0 out of 34 API elements (0.0 %) 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: nagad_payment_gateway, nagad_payment_gateway.Nagad, nagad_payment_gateway.Nagad.Nagad.new, nagad_payment_gateway.Nagad.additionalMerchantInfo, nagad_payment_gateway.Nagad.client.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:nagad_payment_gateway/nagad_payment_gateway.dart that imports:
  • package:nagad_payment_gateway/src/nagad_pg.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.
Package does not support platform `Linux`.

Because:

  • package:nagad_payment_gateway/nagad_payment_gateway.dart that imports:
  • package:nagad_payment_gateway/src/nagad_pg.dart that imports:
  • package:nagad_payment_gateway/src/webview_pg.dart that imports:
  • package:webview_flutter/webview_flutter.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Web`.

Because:

  • package:nagad_payment_gateway/nagad_payment_gateway.dart that imports:
  • package:nagad_payment_gateway/src/nagad_pg.dart that imports:
  • package:nagad_payment_gateway/src/webview_pg.dart that imports:
  • package:webview_flutter/webview_flutter.dart that declares support for platforms: Android, iOS, macOS.

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:nagad_payment_gateway/nagad_payment_gateway.dart that imports:
  • package:nagad_payment_gateway/src/nagad_pg.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.
Package does not support platform `iOS`.

Because:

  • package:nagad_payment_gateway/nagad_payment_gateway.dart that imports:
  • package:nagad_payment_gateway/src/nagad_pg.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.
Package does not support platform `macOS`.

Because:

  • package:nagad_payment_gateway/nagad_payment_gateway.dart that imports:
  • package:nagad_payment_gateway/src/nagad_pg.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:nagad_payment_gateway/nagad_payment_gateway.dart that imports:
  • package:nagad_payment_gateway/src/nagad_pg.dart that imports:
  • package:nagad_payment_gateway/src/webview_pg.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.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

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

Found 7 issues. Showing the first 2:

INFO: Library names are not necessary.

lib/nagad_payment_gateway.dart:1:9

  ╷
1 │ library nagad_payment_gateway;
  │         ^^^^^^^^^^^^^^^^^^^^^
  ╵

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

INFO: Don't use 'BuildContext's across async gaps.

lib/src/nagad_pg.dart:150:15

    ╷
150 │               context,
    │               ^^^^^^^
    ╵

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

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
connectivity_plus ^6.1.3 6.1.5 7.0.0
encrypt ^5.0.3 5.0.3 5.0.3
hex ^0.2.0 0.2.0 0.2.0
http ^1.3.0 1.6.0 1.6.0
intl ^0.20.2 0.20.2 0.20.2
webview_flutter ^4.10.0 4.13.0 4.13.0
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
asn1lib - 1.6.5 1.6.5
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
connectivity_plus_platform_interface - 2.0.1 2.0.1
convert - 3.1.2 3.1.2
crypto - 3.0.7 3.0.7
dbus - 0.7.11 0.7.11
ffi - 2.1.4 2.1.4
http_parser - 4.1.2 4.1.2
js - 0.7.2 0.7.2 Discontinued
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.17.0
nm - 0.5.0 0.5.0
path - 1.9.1 1.9.1
petitparser - 7.0.1 7.0.1
plugin_platform_interface - 2.1.8 2.1.8
pointycastle - 3.9.1 4.0.0
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
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
webview_flutter_android - 4.10.6 4.10.6
webview_flutter_platform_interface - 2.14.0 2.14.0
webview_flutter_wkwebview - 3.23.3 3.23.3
xml - 6.6.1 6.6.1

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

The constraint `^6.1.3` on connectivity_plus does not support the stable version `7.0.0`.

Try running dart pub upgrade --major-versions connectivity_plus to update the constraint.

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.1, Flutter 3.38.0, Dart 3.10.0-290.4.beta.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
3
likes
130
points
61
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for Nagad Online Payment API (Sandbox) Integration

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

connectivity_plus, encrypt, flutter, hex, http, intl, webview_flutter

More

Packages that depend on nagad_payment_gateway