Skip to content
pubscout

locale_sweep

0.8.2, released 3 weeks ago by an unverified publisher

A CI quality gate for Flutter localization testing across locales, viewports, and scales.

$ flutter pub add locale_sweep
Source repository

What it does

Runs app flows across multiple locales, text scales, device sizes, and RTL modes to report broken layouts, missing keys, and text overflows with screenshot proof.

AI-written summary of version 0.8.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to automate localization QA and catch text overflows before shipping.
  • You need to test your app across different locales, text scales, and RTL layouts automatically.

Skip it when

  • You are not using localization in your Flutter app.
  • You do not write widget or integration tests.

Strengths

  • Tests multiple variants (locales, scales, viewports, dark mode) from a single test call.
  • Catches text overflows, missing ARB keys, and placeholder mismatches.
  • Provides screenshot diffing and regression reports.

Weaknesses

  • Relies on golden tests and screenshot comparisons, which can be brittle across different host operating systems.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Add the dependency as a dev_dependency, write a sweep test calling sweepTest, and generate initial golden baselines using dart run locale_sweep update.

sweepTest(
  'onboarding',
  builder: () => const MyApp(),
  arbDir: 'lib/l10n',
);

Works with

Packages commonly used together with locale_sweep: ones it builds on, ones built on it, and its own family.