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'), ), ], ),