How can I use a different locale than the one defined for the whole Flutter app in one part of it?

Overriding the inherited locale and localizations delegates for a child widget is pretty easy in Flutter.
For that purpose, you only need to wrap the desired widget with the Localizations.override factory constructor.

class OtherLocalized extends StatelessWidget {
  Widget build(BuildContext context) {
    return Localizations.override(
      context: context,
      locale: const Locale("es"),
      child: Builder(
        builder: (BuildContext context) => Center(
          child: Text(

Flutter internationalization tutorial:

Copyrights 2024 © Localizely