google_translate 0.0.1 copy "google_translate: ^0.0.1" to clipboard
google_translate: ^0.0.1 copied to clipboard

outdated

Google Translate API for Dart.

Google translate #

pub package travis

Google Translate API for Dart.

Usage #

Add google_translate to your pubspec:

dependencies:
  google_translate: any # or the latest version on Pub

Configure it in you Flutter app.

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const GoogleTranslate(
    apiKey: "you api key",
    sourceLanguage: "en",
    targetLanguage: "it",
    child: MyApp(),
  ));
}

Use it

'example'.translate().then((value) {
    setState(() {
        title = value;
    });
});

Run the example #

See the example/ folder for a working example app.

Supporting Me #

A donation through my Ko-Fi page would be infinitly appriciated: ko-fi

but, if you can't or won't, a star on GitHub and a like on pub.dev would also go a long way!

Every donation gives me fuel to continue my open-source projects and lets me know that I'm doing a good job.

14
likes
0
pub points
90%
popularity

Publisher

unverified uploader

Google Translate API for Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, dio_http_cache_lts, flutter

More

Packages that depend on google_translate