Added "About me"-Section
This commit is contained in:
@@ -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,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 =
|
||||||
|
|||||||
Reference in New Issue
Block a user