amount_localizer 2.0.0 copy "amount_localizer: ^2.0.0" to clipboard
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 DeviceRegionService export from the public barrel. The platform bridge is now a library-private implementation detail. Tests can still reach the underlying MethodChannel via @visibleForTesting AmountLocalizer.debugChannel.

Migration

  • Replace every DeviceRegionService.initializeAndApply() callsite with AmountLocalizer.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 to AmountInputLocale.regionOverride.
0
likes
140
points
3.23k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#localization #intl #currency #formatting

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on amount_localizer

Packages that implement amount_localizer