Skip to content

A widget for translated texts in Flutter (using Google Translator)

License

Notifications You must be signed in to change notification settings

gabrielpacheco23/translated_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

translated_text

TranslatedText Widget

You can use the TranslatedText widget as a replacement for the Text widget to get the benefits of translate() method directly in the widget tree (UI Layer).

TranslatedText(
  "Hello, World!",
  loadingText: 'Loading...',
  from: 'en',
  to: 'ar',
  style: TextStyle(fontSize: 20),
)

// prints مرحبا بالعالم!

 

Changes:

Separated TranslatedText from translator package because of Flutter dependency reasons.

Contribution: @moazelsawaf

Disclaimer

This package is developed for educational purposes only. Do not depend on this package as it may break anytime as it is based on crawling the Google Translate website. Consider buying Official Google Translate API for other types of usage.

About

A widget for translated texts in Flutter (using Google Translator)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published