Compare commits
2 Commits
c62dbbb707
...
6ebfa77416
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ebfa77416 | |||
| b8840ffe0c |
@@ -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')),
|
||||
],
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user