eXchangily DEX mobile App
Note:
Error: Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
<channel.setMockMessageHandler((dynamic message) async {}>
<void setMockMessageHandler(Future Function(T? message)? handler) {}> into /Users/USER_NAME/PATH_TO_FLUTTER/packages/flutter/lib/src/services/platform_channel.dart.
This is a temporary way to fix the following bug: "Error: The method 'setMockMessageHandler' isn't defined for the class 'BinaryMessenger'.
- 'BinaryMessenger' is from 'package:flutter/src/services/binary_messenger.dart'".
flutter pub run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/localizations.dart lib/l10n/intl_en.arb lib/l10n/intl_messages.arb lib/l10n/intl_zh.arb
flutter pub run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/localizations.dart lib/l10n/intl_en.arb
If you get any error then save the pubspec.yaml file and try again
localizations process
- Add getter in the localization.dart file
- Update the AppLocalizations.of(context).
- Run readme.txt commands for localization at least
- Copy and paste the new entry from intl_messages to intl_en
- Push the code and merge to master
- After translation to another lang, pull the code
- Run the readme.txt commands one by one or all together
Reference:
-
In VS code terminal type :
-
fvm install 2.10.0
-
export PATH="$PATH":"$HOME/.pub-cache/bin" (if terminal gives path error)
-
Add below to .vscode/settings.json { "dart.flutterSdkPath": ".fvm/flutter_sdk", // Remove .fvm files from search "search.exclude": { "/.fvm": true }, // Remove from file watching "files.watcherExclude": { "/.fvm": true } }
- If debug with breakpoint does not work then add "dart.flutterSdkPath": ".fvm/flutter_sdk", in vscode settings by searching for flutter sdk path in settings
-
fvm use