main function
void
main()
Implementation
void main() {
Text translatableText = TranslatableText(
displayLanguage: Languages.german,
options: [
TranslateOption(
language: Languages.english,
text: 'Hello',
),
TranslateOption(
language: Languages.spanish,
text: 'Hola',
),
TranslateOption(
language: Languages.german,
text: 'Hallo',
),
],
style: TextStyle(
color: Colors.blue,
fontSize: 40,
),
);
runApp(MaterialApp(
home: Scaffold(
body: SafeArea(
child: Text(
translatableText.data!,
),
),
),
));
}