Loading topic
pubspec.yaml, run flutter pub get, and build a basic MaterialApp. It covers only the project setup. The l10n.yaml file, the ARB format, and the generated class come in later chapters.5 min readflutter_localizations, intl, and generate: true to pubspec.yaml, as covered in the previous chapter. You should also be comfortable reading YAML and running flutter pub get. Here you will write the l10n.yaml file that tells the generator where your 4 min readflutter_localizations and intl added, and have an l10n.yaml that points at lib/l10n with app_en.arb as the template. If any of that is missing, finish the setup chapters first. Here you will learn how an ARB file is struct5 min readpubspec.yaml, you have already added flutter_localizations and intl, and you have an l10n.yaml and a template ARB file such as lib/l10n/app_en.arb. Here you will see what the gen-l10n tool does with those inputs, how to run it, what it writes, and how to6 min readMaterialApp, and that you have already run flutter gen-l10n. You should have lib/l10n/app_localizations.dart and your ARB files in place. The generated class exists at this point, but nothing in the widget tree can reach it yet. Wiring conn4 min readAppLocalizations, wired localizationsDelegates and supportedLocales into MaterialApp, and can write a StatelessWidget and a StatefulWidget. Placeholders, plurals and formattin5 min readpubspec.yaml, `l10n.yaml5 min readflutter_localizations in pubspec.yaml, an l10n.yaml, a template app_en.arb, and AppLocalizations wired into MaterialApp. It also assumes you know how placeholders are declared in ARB metadata.5 min readl10n.yaml, a template app_en.arb, a translated app_es.arb, and AppLocalizations wired into MaterialApp. You should also know how typed placeholders work in ARB files.5 min readl10n.yaml, at least two ARB files, and AppLocalizations wired into MaterialApp. You should also be comfortable with Locale, which pairs a language code such as es with an optional script and country code such as MX.5 min readAppLocalizations.supportedLocales is wired into MaterialApp, and you can run the app on a device or simulator. You should also be comfortable editing XML and property files in the platform folders (ios/, android/, macos/, `6 min readl10n.yaml, a template file lib/l10n/app_en.arb, at least one translated file such as app_es.arb, and the generated AppLocalizations class. It also assumes you can run flutter gen-l10n and read JSON. The goal is to make sure new mess5 min read