Localized static text
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
||||
class LanguageWidget extends StatelessWidget {
|
||||
const LanguageWidget({super.key});
|
||||
@@ -18,8 +19,9 @@ class LanguageWidget extends StatelessWidget {
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text('Deutsch', style: Theme.of(context).textTheme.bodyLarge),
|
||||
Text('Muttersprache',
|
||||
Text(AppLocalizations.of(context)!.german,
|
||||
style: Theme.of(context).textTheme.bodyLarge),
|
||||
Text(AppLocalizations.of(context)!.mother_tongue,
|
||||
style: Theme.of(context).textTheme.bodyMedium),
|
||||
],
|
||||
),
|
||||
@@ -36,8 +38,10 @@ class LanguageWidget extends StatelessWidget {
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text('Englisch', style: Theme.of(context).textTheme.bodyLarge),
|
||||
Text('Sehr gut', style: Theme.of(context).textTheme.bodyMedium),
|
||||
Text(AppLocalizations.of(context)!.english,
|
||||
style: Theme.of(context).textTheme.bodyLarge),
|
||||
Text(AppLocalizations.of(context)!.very_good,
|
||||
style: Theme.of(context).textTheme.bodyMedium),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user