-
Notifications
You must be signed in to change notification settings - Fork 72
OCR integrated #545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
OCR integrated #545
Conversation
| clientmanagerLibVersionName = "\"1.0.0\"" | ||
|
|
||
| serverBaseURL = "\"https://api-internal.qa-plan.mosip.net\"" | ||
| serverBaseURL = "\"https://api-internal.qa-base.mosip.net\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the base URL from qa-base to qa-core.
| ocrData[ocrKey]!, | ||
| globalProvider.fieldInputValue, | ||
| ); | ||
| print("✅ SET VALUE: $fieldId = $value"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove print
| showDialog( | ||
| context: context, | ||
| builder: (context) => AlertDialog( | ||
| title: const Text("Scanned Data"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use localization for the "Scanned Data".
|
|
||
| autofillFormFromOCR(context, result); | ||
| }, | ||
| child: const Text("OK"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use localization
| ); | ||
| } else { | ||
| ScaffoldMessenger.of(context).showSnackBar( | ||
| const SnackBar(content: Text("No text detected or format unrecognized")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use localization
| final value = globalProvider.fieldInputValue[widget.e.id]; | ||
| if (value is String) return value; | ||
| if (value is Map<String, dynamic>) { | ||
| return value[lang] ?? ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change the logic here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't push this file
| return (e.controlType!=null)? Text("${e.controlType}"): const SizedBox.shrink(); | ||
| } | ||
| } | ||
| void autofillFormFromOCR(BuildContext context, Map<String, String> ocrData) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you check if it works based on the UI spec?
| controllerMap.putIfAbsent(lang, | ||
| () => TextEditingController(text: _getDataFromMap(lang))); | ||
| }); | ||
| final valueFromMap = _getDataFromMap(lang); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we select multiple languages, will it work?
| - .git/refs/heads/ | ||
| - assets/l10n/ | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove blank space
No description provided.