Quotesbook
Flutter project for Quotesbook mobile app.
Setup
- Add lib/environment.dart file with
class Environment {
static const AUTH_TOKEN = "...";
static const SERVER_HOST = "...";
}
Remember to add the google-services.json to the android/app folder. Get this from the firebase
project.
Add android/key.properties to sign apk/bundle.
To generate internationalizations
-
Update the
lib/helpers/app_localizations.dart
with the new texts.ยก -
Create base arb base file for localization.
flutter pub run intl_translation:extract_to_arb --output-dir=lib/l10n lib/helpers/app_localizations.dart
-
Update the files
I10n/intl_*.arb
languages specific files with translations. -
Generate source code for localization messages from arb files.
flutter pub run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/helpers/app_localizations.dart lib/l10n/intl_*.arb