Compare commits
2 Commits
cf79defe49
...
69675f42e2
| Author | SHA1 | Date | |
|---|---|---|---|
| 69675f42e2 | |||
| da4a057fd7 |
@@ -3,6 +3,7 @@ import 'package:resume/services/breakpoints.dart';
|
||||
import 'package:resume/services/content_provider.dart';
|
||||
import 'package:resume/widgets/content_widget.dart';
|
||||
import 'package:resume/widgets/profile.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class LandingPage extends StatefulWidget {
|
||||
const LandingPage({super.key});
|
||||
@@ -41,8 +42,8 @@ class _LandingPageState extends State<LandingPage> {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Landing'),
|
||||
actions: [
|
||||
TextButton(onPressed: () {}, child: const Text('Source Code')),
|
||||
actions: const [
|
||||
TextButton(onPressed: _launchURL, child: Text('Source Code')),
|
||||
],
|
||||
),
|
||||
body: !loadingDone
|
||||
@@ -119,3 +120,10 @@ class _LandingPageState extends State<LandingPage> {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
_launchURL() async {
|
||||
final Uri url = Uri.parse('https://git.skup.in/marco/resume');
|
||||
if (await launchUrl(url)) {
|
||||
throw Exception('Could not launch $url');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,17 +53,17 @@ class ContentListTile extends StatelessWidget {
|
||||
}
|
||||
|
||||
static const months = [
|
||||
'January',
|
||||
'February',
|
||||
'March',
|
||||
'Januar',
|
||||
'Februar',
|
||||
'März',
|
||||
'April',
|
||||
'May',
|
||||
'June',
|
||||
'Mai',
|
||||
'Juni',
|
||||
'July',
|
||||
'August',
|
||||
'September',
|
||||
'October',
|
||||
'Oktober',
|
||||
'November',
|
||||
'December'
|
||||
'Dezember'
|
||||
];
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ class Profile extends StatelessWidget {
|
||||
const Padding(padding: EdgeInsets.symmetric(vertical: 5)),
|
||||
Text(
|
||||
'marco@skup.in',
|
||||
style: Theme.of(context).textTheme.bodyLarge,
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -11,6 +11,7 @@ dependencies:
|
||||
sdk: flutter
|
||||
|
||||
cupertino_icons: ^1.0.8
|
||||
url_launcher: ^6.3.1
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
Reference in New Issue
Block a user