From 0b92efc56d304659b2837e902677b9cf09827023 Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 16 Jul 2026 14:39:13 +0200 Subject: [PATCH] Made text selectable --- lib/pages/landing_page.dart | 84 +++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/lib/pages/landing_page.dart b/lib/pages/landing_page.dart index 29f9a9c..626d22a 100644 --- a/lib/pages/landing_page.dart +++ b/lib/pages/landing_page.dart @@ -50,50 +50,54 @@ class _LandingPageState extends State { (MediaQuery.of(context).size.width - _getMainContentWidth()) / 2; Widget _getSideBar() { - return Column( - children: [ - ContentBlock( - blockTitle: AppLocalizations.of(context)!.skills, - contentType: ContentType.skills, - content: contentProvider.getContent(ContentType.skills), - ), - const Padding(padding: EdgeInsets.only(bottom: 25)), - ContentBlock( - blockTitle: AppLocalizations.of(context)!.languages, - contentType: ContentType.language, - content: contentProvider.getContent(ContentType.language), - ), - ], + return SelectionArea( + child: Column( + children: [ + ContentBlock( + blockTitle: AppLocalizations.of(context)!.skills, + contentType: ContentType.skills, + content: contentProvider.getContent(ContentType.skills), + ), + const Padding(padding: EdgeInsets.only(bottom: 25)), + ContentBlock( + blockTitle: AppLocalizations.of(context)!.languages, + contentType: ContentType.language, + content: contentProvider.getContent(ContentType.language), + ), + ], + ), ); } Widget _getMainContent() { - return Column( - children: [ - ContentBlock( - blockTitle: AppLocalizations.of(context)!.work_experience, - contentType: ContentType.experience, - content: contentProvider.getContent(ContentType.experience), - ), - const Padding(padding: EdgeInsets.only(bottom: 25)), - ContentBlock( - blockTitle: AppLocalizations.of(context)!.education, - contentType: ContentType.education, - content: contentProvider.getContent(ContentType.education), - ), - const Padding(padding: EdgeInsets.only(bottom: 25)), - ContentBlock( - blockTitle: AppLocalizations.of(context)!.additional_skills, - contentType: ContentType.generalSkills, - content: contentProvider.getContent(ContentType.generalSkills), - ), - const Padding(padding: EdgeInsets.only(bottom: 25)), - ContentBlock( - blockTitle: AppLocalizations.of(context)!.about_me, - contentType: ContentType.text, - content: contentProvider.getContent(ContentType.text), - ), - ], + return SelectionArea( + child: Column( + children: [ + ContentBlock( + blockTitle: AppLocalizations.of(context)!.about_me, + contentType: ContentType.text, + content: contentProvider.getContent(ContentType.text), + ), + const Padding(padding: EdgeInsets.only(bottom: 25)), + ContentBlock( + blockTitle: AppLocalizations.of(context)!.work_experience, + contentType: ContentType.experience, + content: contentProvider.getContent(ContentType.experience), + ), + const Padding(padding: EdgeInsets.only(bottom: 25)), + ContentBlock( + blockTitle: AppLocalizations.of(context)!.education, + contentType: ContentType.education, + content: contentProvider.getContent(ContentType.education), + ), + const Padding(padding: EdgeInsets.only(bottom: 25)), + ContentBlock( + blockTitle: AppLocalizations.of(context)!.additional_skills, + contentType: ContentType.generalSkills, + content: contentProvider.getContent(ContentType.generalSkills), + ), + ], + ), ); }