amount_localizer 2.0.0
amount_localizer: ^2.0.0 copied to clipboard
Locale-aware amount formatter with a native bridge that reads the device's true Region setting — the one that drives the numeric keyboard's decimal key.
2.0.0 #
Breaking changes
-
Removed
DeviceRegionService. Init is now a single call on the headline class:// Before (1.x) await DeviceRegionService.initializeAndApply(); // After (2.0) await AmountLocalizer.ensureInitialized(); -
Removed the top-level
DeviceRegionServiceexport from the public barrel. The platform bridge is now a library-private implementation detail. Tests can still reach the underlyingMethodChannelvia@visibleForTesting AmountLocalizer.debugChannel.
Migration
- Replace every
DeviceRegionService.initializeAndApply()callsite withAmountLocalizer.ensureInitialized(). Same semantics, same return type (Future<String?>), same best-effort / never-throws contract.
1.0.0 #
- First stable release. No API changes vs 0.1.1 — the public surface is now covered by semver, so any breaking change from here on will require a 2.0.0.
0.1.1 #
- README: switch install instructions to the published pub.dev version.
0.1.0 #
- Initial release.
AmountInputLocale— canonical numeric-format enum with country/locale resolution.AmountLocalizer— cached, locale-aware amount formatter.DeviceRegionService— native bridge that reads the device's true Region / format-locale country and applies it toAmountInputLocale.regionOverride.