Compare commits

..

2 Commits

Author SHA1 Message Date
6ebfa77416 Added "About me"-Section 2024-12-05 16:19:45 +01:00
b8840ffe0c Changed Title of LandingPage 2024-12-05 15:57:46 +01:00
2 changed files with 10 additions and 2 deletions

View File

@@ -69,6 +69,11 @@ class _LandingPageState extends State<LandingPage> {
blockTitle: 'Bildungsweg',
contentType: ContentType.education,
),
Padding(padding: EdgeInsets.only(bottom: 25)),
ContentBlock(
blockTitle: "Über mich",
contentType: ContentType.text,
),
],
);
}
@@ -178,7 +183,7 @@ class _LandingPageState extends State<LandingPage> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Landing'),
title: const Text('Lebenslauf'),
actions: const [
TextButton(onPressed: _launchURL, child: Text('Source Code')),
],

View File

@@ -20,7 +20,10 @@ class ContentBlock extends StatelessWidget {
return const LanguageWidget();
} else if (contentType == 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<dynamic> content =