language_detector 0.0.2 language_detector: ^0.0.2 copied to clipboard
Detect language of any text.
Language Detector #
Detect language of any text.
Getting started #
Add this to your package's pubspec.yaml
file
dependencies:
language_detector: ^0.0.2
Usage #
Next, you just have to import the package using:
import 'package:language_detector/language_detector.dart';
Widget build(BuildContext context) {
return OutlinedButton(
onPressed: () async {
language = await LanguageDetector.getLanguageName(
content: 'helo');
},
child: const Text("Get Language >"),
),
}
Additional information #
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.