Language-Widget added
This commit is contained in:
BIN
assets/de_icon.png
Normal file
BIN
assets/de_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 891 B |
BIN
assets/gb_icon.png
Normal file
BIN
assets/gb_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
48
lib/widgets/language_widget.dart
Normal file
48
lib/widgets/language_widget.dart
Normal file
@@ -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),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -25,3 +25,5 @@ flutter:
|
|||||||
assets:
|
assets:
|
||||||
- assets/content.json
|
- assets/content.json
|
||||||
- assets/profile.jpg
|
- assets/profile.jpg
|
||||||
|
- assets/de_icon.png
|
||||||
|
- assets/gb_icon.png
|
||||||
Reference in New Issue
Block a user