Added "About me"-Section

This commit is contained in:
2024-12-05 16:19:45 +01:00
parent b8840ffe0c
commit 6ebfa77416
2 changed files with 9 additions and 1 deletions

View File

@@ -69,6 +69,11 @@ class _LandingPageState extends State<LandingPage> {
blockTitle: 'Bildungsweg', blockTitle: 'Bildungsweg',
contentType: ContentType.education, contentType: ContentType.education,
), ),
Padding(padding: EdgeInsets.only(bottom: 25)),
ContentBlock(
blockTitle: "Über mich",
contentType: ContentType.text,
),
], ],
); );
} }

View File

@@ -20,7 +20,10 @@ class ContentBlock extends StatelessWidget {
return const LanguageWidget(); return const LanguageWidget();
} else if (contentType == ContentType.text) { } else if (contentType == ContentType.text) {
final content = ContentProvider.getContent<String>(ContentType.text); final content = ContentProvider.getContent<String>(ContentType.text);
return Text(content); return SizedBox(
width: double.infinity,
child: Text(content),
);
} }
// List-based content-blocks // List-based content-blocks
List<dynamic> content = List<dynamic> content =