flutter_auto_translate 1.1.1
flutter_auto_translate: ^1.1.1 copied to clipboard
Wrap any Text or TextField with AutoTranslate to add automatic translation with caching. Supports 85+ languages.
1.1.1 - 2026-05-13 #
Fixed #
- README banner image now uses a path relative to the package root
(
assets/flutter_auto_translate_banner.png) so it renders correctly on pub.dev and GitHub (the previousraw.githubusercontent.com/.../main/...URL returned 404 when the default branch ismaster).
1.1.0 - 2026-05-13 #
Added #
- Hint text translation in
TextField: wrap anyTextFieldwithAutoTranslate, or use the newAutoTranslateField/AutoTranslateFormFieldwidgets.hintText,labelText,helperText,errorText,prefixText,suffixTextandcounterTextare translated. - New
AutoTranslateScopewidget that renders a single, configurable full-screen loader while translations for a screen are being fetched or while the language is changing — replaces per-widget spinners with a clean screen-level UX. TranslationServiceis now aChangeNotifierand exposes apendingCount(ValueListenable<int>) plus anisTranslatingflag for custom loading states.- Synchronous, in-memory translation cache that mirrors
SharedPreferences, so widgets can resolve translations during build with no flicker. - Request deduplication: simultaneous translation requests for the same text + language are merged into a single network call.
TranslationService.preload(...)batch-translates a list of strings to pre-warm a screen.
Changed #
AutoTranslateno longer shows a per-widget loading indicator by default. Opt back into the legacy behavior withshowInlineLoader: true.- Language changes no longer require manual
setStatefrom consuming screens.AutoTranslate,AutoTranslateFieldandAutoTranslateFormFieldall listen reactively toTranslationServiceand update in place, eliminating screen-level rebuild flicker / shaking.
1.0.0 - 2024-11-19 #
- Initial release
- AutoTranslate wrapper widget for any Text widget
- Support for 85+ languages with automatic translation
- Smart caching system for instant loading
- Language selection screen with country flags
- Search functionality for languages
- Zero refactoring needed - just wrap existing Text widgets