diff --git a/assets/de_icon.png b/assets/de_icon.png new file mode 100644 index 0000000..fad5ffe Binary files /dev/null and b/assets/de_icon.png differ diff --git a/assets/gb_icon.png b/assets/gb_icon.png new file mode 100644 index 0000000..0266968 Binary files /dev/null and b/assets/gb_icon.png differ diff --git a/lib/widgets/language_widget.dart b/lib/widgets/language_widget.dart new file mode 100644 index 0000000..947f0ff --- /dev/null +++ b/lib/widgets/language_widget.dart @@ -0,0 +1,48 @@ +import 'package:flutter/material.dart'; + +class LanguageWidget extends StatelessWidget { + const LanguageWidget({super.key}); + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Image.asset( + 'assets/de_icon.png', + width: 50, + ), + const Padding(padding: EdgeInsets.only(right: 15)), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('Deutsch', style: Theme.of(context).textTheme.bodyLarge), + Text('Muttersprache', + style: Theme.of(context).textTheme.bodyMedium), + ], + ), + ], + ), + const Padding(padding: EdgeInsets.only(bottom: 8)), + Row( + children: [ + Image.asset( + 'assets/gb_icon.png', + width: 50, + ), + const Padding(padding: EdgeInsets.only(right: 15)), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('Englisch', style: Theme.of(context).textTheme.bodyLarge), + Text('Sehr gut', style: Theme.of(context).textTheme.bodyMedium), + ], + ), + ], + ), + ], + ); + } +} diff --git a/pubspec.yaml b/pubspec.yaml index 55344c0..ddb22d2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -24,4 +24,6 @@ flutter: assets: - assets/content.json - - assets/profile.jpg \ No newline at end of file + - assets/profile.jpg + - assets/de_icon.png + - assets/gb_icon.png \ No newline at end of file