From b5254fa1048ff7d5c7437ea72dcfda2b3de2d848 Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 16 Jul 2026 14:29:38 +0200 Subject: [PATCH] changed mail to link --- lib/widgets/profile.dart | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/widgets/profile.dart b/lib/widgets/profile.dart index 1404f8a..6756d17 100644 --- a/lib/widgets/profile.dart +++ b/lib/widgets/profile.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:url_launcher/url_launcher.dart'; class Profile extends StatelessWidget { const Profile({super.key}); @@ -32,10 +33,14 @@ class Profile extends StatelessWidget { style: Theme.of(context).textTheme.titleLarge, ), const Padding(padding: EdgeInsets.symmetric(vertical: 5)), - Text( - 'marco@skup.in', - textAlign: TextAlign.center, - style: Theme.of(context).textTheme.bodyMedium, + TextButton( + onPressed: () => launchUrl(Uri.parse('mailto:marco@skup.in')), + style: ButtonStyle( + textStyle: WidgetStatePropertyAll( + Theme.of(context).textTheme.bodyMedium, + ), + ), + child: const Text('marco@skup.in'), ), ], ),