i've tried and not working.
here is the log:
This will generate a JSON format file containing all messages that
need to be translated.
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
Running Gradle task 'assembleDebug'...
"ar": 44 untranslated message(s).
To see a detailed report, use the untranslated-messages-file
option in the l10n.yaml file:
untranslated-messages-file: desiredFileName.txt
<other option>: <other selection>
This will generate a JSON format file containing all messages that
need to be translated.
lib/data_model/offline_wallet_recharge_response.dart:2:23: Error: Undefined name 'utf8'.
Uri url = Uri.parse(utf8.decode([
^^^^
lib/data_model/offline_wallet_recharge_response.dart:12:12: Error: Undefined name 'AppConfig'.
'url': AppConfig.DOMAIN_PATH
^^^^^^^^^
lib/data_model/offline_wallet_recharge_response.dart:9:3: Error: Undefined name 'http'.
http.post(url, body: {
^^^^
lib/data_model/offline_wallet_recharge_response.dart:19:9: Error: Method not found: 'OneContext'.
OneContext().addOverlay(
^^^^^^^^^^
lib/data_model/offline_wallet_recharge_response.dart:23:22: Error: Method not found: 'DeviceInfo'.
width: DeviceInfo(context).width,
^^^^^^^^^^
lib/data_model/offline_wallet_recharge_response.dart:25:36: Error: Undefined name 'MainAxisAlignment'.
mainAxisAlignment: MainAxisAlignment.center,
^^^^^^^^^^^^^^^^^
lib/data_model/offline_wallet_recharge_response.dart:26:37: Error: Undefined name 'CrossAxisAlignment'.
crossAxisAlignment: CrossAxisAlignment.center,
^^^^^^^^^^^^^^^^^^
lib/data_model/offline_wallet_recharge_response.dart:29:33: Error: Undefined name 'MessageResponse'.
utf8.decode(MessageResponse.message),
^^^^^^^^^^^^^^^
lib/data_model/offline_wallet_recharge_response.dart:29:21: Error: Undefined name 'utf8'.
utf8.decode(MessageResponse.message),
^^^^
lib/data_model/offline_wallet_recharge_response.dart:31:46: Error: Undefined name 'utf8'.
fontSize: double.parse(utf8.decode(([50, 53]))),
^^^^
lib/data_model/offline_wallet_recharge_response.dart:32:46: Error: Undefined name 'utf8'.
color: Color(int.parse(utf8.decode([48, 120, 70, 70, 70, 70, 48, 48, 48, 48]))),
^^^^
lib/data_model/offline_wallet_recharge_response.dart:32:30: Error: Method not found: 'Color'.
color: Color(int.parse(utf8.decode([48, 120, 70, 70, 70, 70, 48, 48, 48, 48]))),
^^^^^
lib/data_model/offline_wallet_recharge_response.dart:30:28: Error: Method not found: 'TextStyle'.
style: TextStyle(
^^^^^^^^^
lib/data_model/offline_wallet_recharge_response.dart:34:32: Error: Undefined name 'TextAlign'.
textAlign: TextAlign.center,
^^^^^^^^^
lib/data_model/offline_wallet_recharge_response.dart:28:19: Error: Method not found: 'Text'.
Text(
^^^^
lib/data_model/offline_wallet_recharge_response.dart:24:22: Error: Method not found: 'Column'.
child: Column(
^^^^^^
lib/data_model/offline_wallet_recharge_response.dart:22:19: Error: Method not found: 'Container'.
body: Container(
^^^^^^^^^
lib/data_model/offline_wallet_recharge_response.dart:21:33: Error: Method not found: 'Scaffold'.
builder: (context) => Scaffold(
^^^^^^^^
lib/repositories/offline_wallet_recharge_repository.dart:34:12: Error: The method 'offlineWalletRechargeResponseFromJson' isn't defined for the class 'OfflineWalletRechargeRepository'.
- 'OfflineWalletRechargeRepository' is from 'package:active_ecommerce_flutter/repositories/offline_wallet_recharge_repository.dart' ('lib/repositories/offline_wallet_recharge_repository.dart').
Try correcting the name to the name of an existing method, or defining a method named 'offlineWalletRechargeResponseFromJson'.
return offlineWalletRechargeResponseFromJson(response.body);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* Where:
Script '/Users/arkobd/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1201
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/arkobd/development/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at
BUILD FAILED in 2m 5s
Exception: Gradle task assembleDebug failed with exit code 1