archethic_dapp_framework_flutter 3.2.5 copy "archethic_dapp_framework_flutter: ^3.2.5" to clipboard
archethic_dapp_framework_flutter: ^3.2.5 copied to clipboard

An internal framework for archethic flutter development

Archethic's flutter framework to create Archethic Dapps #

This project provides widgets to facilitate the creation of Archethic DApps

Arb file management #

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

To generate the arb file, you should: #

  • Generate with Flutter_Gen (command: flutter gen-l10n) the AppLocalizations and AppLocalizationsEn 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

Declare the localizations delegates in your DApp. #

Add aedappfm.AppLocalizations.delegate in localizationsDelegates property of MaterialApp

Warning #

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;

Pre-requisites #

  • Flutter 3.22+
  • Dart 3.4+