checkout_screen_ui 1.1.0
checkout_screen_ui: ^1.1.0 copied to clipboard
A pre built UI representing a checkout screen that is meant to be coupled with your own logic.
Changelog #
1.1.0 #
- Flutter Web: depend on
url_launcher_web^2.4.2 sopackage:webresolves to a Dart 3.10+–compatible release (fixesdart compile jsfailures withweb0.3.x). - Minimum environment: Dart
>=3.10.0, Flutter>=3.38.0(aligned withurl_launcher_web2.4.x). - Example app: drop
dart:io/Platform.isIOS; usedefaultTargetPlatformso the demo compiles and runs on web. - Raised Dart / Flutter constraints (from prior 1.0.x); updated
flutter_lintsandurl_launcher. - Fixed footer links to use
Uri.parseand externallaunchUrlmode so HTTPS URLs open correctly. - Card validation: Amex 15-digit (4-6-5) and standard 16-digit PAN patterns; MM/YY expiry regex aligned with the masked field; expiry must not be before the current month.
CardFormResults.toStringis redacted in profile/release; in debug it includes full values for local development only.- Checkout scroll: single
ScrollControllerowned by state with proper disposal; removed per-build controller creation. CreditCardForm: controller disposal, prefill via lifecycle (not inbuild), test data only in debug when enabled, optional ZIP/phone validators and E.164 formatter;CheckoutDatagainsdisplayPhone,submitLabel, and related optional hooks.- Added
CheckoutThemeas aThemeExtensionfor app bar and pay button colors. - Added
checkout_screen_ui.dartlibrary barrel and re-exportedvalidation.dart.