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

Payment using Duticotac.

0.3.1 #

Packaging only — no code change.

Fixed #

  • The 0.3.0 archive shipped the local build/ folder (test compilation output, about 19 MB compressed). .pubignore now excludes build/, .dart_tool/ and pubspec.lock.

0.3.0 #

Breaking: the minimum Dart and Flutter versions move up, and flutter_easyloading and duticotac_api_flutter cross a version boundary. The package's own API is unchanged.

Breaking #

  • Minimum Dart SDK is now ^3.13.0 (was ^3.7.2)
  • Minimum Flutter is now >=3.47.0 (was >=1.17.0)
  • flutter_easyloading upgraded to ^4.0.2 (was ^3.0.5); apps that depend on it directly must move to 4.x too. EasyLoading.init() is unchanged.
  • duticotac_api_flutter upgraded to ^0.1.1 (was ^0.0.20)

Fixed #

  • onTransactionCompleted was never called. It now receives the id returned by getTransactionId after a successful mobile money payment.
  • The method choice sheet overflowed when card, mobile money and cash were all offered: it now sizes itself to its content.
  • payAnOffer: closing the method choice sheet showed an "unknown-error" toast and returned unknown-error. It now returns show-modal-bottom-sheet-error, like closing the operator list.
  • payAnOffer: unknown errors showed the raw unknown-error code in the toast instead of "Une erreur inconnue est survenue".
  • payAnOffer on an offer without a price and no amount now shows "Cette offre n'a pas de prix : indiquez un montant" instead of an unknown error.
  • In-app purchase: the loading overlay stayed on screen after the store accepted the purchase.

Changed #

  • dio upgraded to ^5.11.1, hive_ce to ^2.20.0, in_app_purchase to ^3.3.0, pinput to ^6.0.2, url_launcher to ^6.3.2, phone_form_field to ^10.0.18
  • phone_form_field 11 is not used: it builds on the standalone material_ui package and its field crashes under package:flutter/material.dart
  • Dev dependency flutter_lints upgraded to ^6.0.0
  • Provider filtering and phone number rules moved out of the widgets into utils/payment_options.dart and utils/phone_rules.dart, with unit tests
  • README rewritten to match the code: EasyLoading.init() setup, return values and errors, in-app purchase completion, credit card and cash not yet implemented; removed the build_runner and in_app_purchase_storekit instructions, which consumers don't need

0.0.1 #

  • TODO: Describe initial release.