This project provides widgets to facilitate the creation of Archethic DApps
Please, fill /lib/src/l10n/intl_en.arb
file to externalize texts.
Best practice: prefix each key with aedappfm_
to avoid doublons with DApp projects
- Generate with Flutter_Gen (command:
flutter gen-l10n
) theAppLocalizations
andAppLocalizationsEn
classes in the hidden folder.dart_tool/flutter_gen/gen_l10n
. (see/l10n.yaml
conf)
flutter gen-l10n
- Copy generated classes to a public folder
/lib/src/l10n
with the script./lib/src/l10n/copy_l10n.sh
.
./lib/src/l10n/copy_l10n.sh
Add aedappfm.AppLocalizations.delegate
in localizationsDelegates
property of MaterialApp
To avoid key doublons, we recommand to suffix Archethic DApp Framework imports in the DApp project.
For example: import 'package:archethic_dapp_framework_flutter/archethic-dapp-framework-flutter.dart as aedappfm;
- Flutter 3.22+
- Dart 3.4+