How can I detect text language with flutter
Solution 1:
I found another way to detect language code; You need to use this package. I leave a simple code example below;
Translation translation = await translator.translate("Example Text");
lanCode = translation.sourceLanguage.code;
print("Language Code: $lanCode");