kkiapay / kkiapay-flutter-sdk

KkiaPay flutter sdk, allows businesses to safely receive payments by mobile money, credit card and bank account.
https://kkiapay.me
MIT License
16 stars 18 forks source link

to fix: bug related to a `dart.js` package imported no matter the platform the app is running on. #40

Open AmanMenda opened 3 months ago

AmanMenda commented 3 months ago

Bug description First, there are some variables a new user can't have access to. And by that i mean "nColorPrimary", "SuccessPage". It would be great if the example was really standalone.

The second thing is that whether the app is compiled on mobile/web, a dart.js package is imported, which causes the app to crash on mobile.

To Reproduce Initialize a new flutter project, install the kkiapay_flutter_sdk and just copy and paste the example.

Expected behavior Building the example should immediately give an overview of how the project work.

Smartphone details:

Additional context N/A

Shek863 commented 2 months ago

@AmanMenda what version are you using? This problem is currently in prerelease ( not recommended ) version and will be fixed

Make sure you use the latest official version kkiapay_flutter_sdk: ^1.2.12.

AmanMenda commented 2 months ago

Hello Shegun ! J'utilise effectivement la toute dernière version. Après avoir tenté d'installer la dépendance avec pub, j'ai directement mis un URL vers ton repo github pour être sûr d'avoir littéralement ton dernier push. Le problème vient du fait que tu utilises dart.js et des modules web même quand on lance sur mobile. Nous avons pu le régler en ajoutant une condition sur les modules web. On peut te laisser une PR pour que tu vois si possible.


De : Shegun MONTCHO @.> Envoyé : mercredi 29 mai 2024 12:16 À : kkiapay/kkiapay-flutter-sdk @.> Cc : Aman Ilaidama MENDA @.>; Mention @.> Objet : Re: [kkiapay/kkiapay-flutter-sdk] to fix: bug related to a dart.js package imported no matter the platform the app is running on. (Issue #40)

@AmanMendahttps://github.com/AmanMenda what version are you using? This problem is currently in prerelease ( not recommended ) version and will be fixed

Make sure you use the latest official version kkiapay_flutter_sdk: ^1.2.12.

— Reply to this email directly, view it on GitHubhttps://github.com/kkiapay/kkiapay-flutter-sdk/issues/40#issuecomment-2137163763, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV7VVFU5YQ74KH4EMMIEG63ZEW2JPAVCNFSM6AAAAABH7MWLZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZXGE3DGNZWGM. You are receiving this because you were mentioned.Message ID: @.***>