-
Notifications
You must be signed in to change notification settings - Fork 93
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
Getting Null for the translated output #17
Comments
Have you tried using |
Yes. But it looks like Google is giving the null. Maybe because they are charging $20/M Char. |
Thats weird. I tested your code and it worked for me. |
setState(() { |
The issue is due to the unusual traffic on your network you can test on different network I have observed it but we can't depend on this package as at any point of time we may break. If possible bro please take look on this it will be helpful for many of the developers to use your package |
I am getting null for any input words. Here is the code segment:
GoogleTranslator translator = GoogleTranslator(); //using google translator
String out;
final lang = TextEditingController(); //getting text
void trans() {
translator.translate(lang.text, to: 'fr')
.then((output) {
setState(() {
out = output; //placing the translated text to the String to be used
});
print(out);
});
}
The text was updated successfully, but these errors were encountered: