This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47fdcec
commit 5e1fa7c
Showing
3 changed files
with
91 additions
and
10 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
lib/pages/profile_page/screens/settings_screen/about/about.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
const String version = '0.0.1'; | ||
|
||
class AboutScreen extends StatelessWidget { | ||
const AboutScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: Text('About'), | ||
), | ||
body: Center( | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
children: [ | ||
SizedBox(height: 50), | ||
Text('Muffed', style: Theme.of(context).textTheme.titleLarge), | ||
SizedBox(height: 8), | ||
Image.asset('assets/icon.png', width: 180, height: 180), | ||
Text(version), | ||
SizedBox(height: 24), | ||
ListTile( | ||
title: Text('GitHub'), | ||
subtitle: Text('github.com/freshfieldreds/muffed'), | ||
leading: Icon(Icons.code), | ||
onTap: () { | ||
launchUrl( | ||
Uri.parse('https://github.com/freshfieldreds/muffed'), | ||
); | ||
}, | ||
), | ||
ListTile( | ||
title: Text('Lemmy Community'), | ||
subtitle: Text('sh.itjust.works/c/muffed'), | ||
leading: Icon(Icons.group), | ||
onTap: () { | ||
launchUrl(Uri.parse('https://sh.itjust.works/c/muffed')); | ||
}, | ||
), | ||
ListTile( | ||
title: Text('Email'), | ||
subtitle: Text('freshfieldreds@gmail.com'), | ||
leading: Icon(Icons.email), | ||
onTap: () { | ||
launchUrl(Uri.parse('mailto:freshfieldreds@gmail.com')); | ||
}, | ||
), | ||
ListTile( | ||
title: Text('Licences'), | ||
leading: Icon(Icons.library_books), | ||
onTap: () { | ||
showLicensePage( | ||
context: context, | ||
applicationName: 'Muffed', | ||
applicationVersion: version, | ||
applicationIcon: Image.asset( | ||
'assets/icon.png', | ||
width: 196, | ||
height: 196, | ||
), | ||
); | ||
}, | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters