Skip to content

v2.0.0

Latest

Choose a tag to compare

@SriNKast SriNKast released this 08 Jul 05:08
· 3 commits to main since this release

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 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.

Install

dependencies:
  amount_localizer: ^2.0.0

📦 pub.dev: https://pub.dev/packages/amount_localizer/versions/2.0.0