-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from AbdeltwabMF/fix/remove-non-free-dependencies
Remove non free dependencies
- Loading branch information
Showing
5 changed files
with
522 additions
and
301 deletions.
There are no files selected for viewing
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,135 @@ | ||
import 'package:flutter/gestures.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:loc/styles/colors.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
class About extends StatelessWidget { | ||
const About({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
backgroundColor: AppColors.bg, | ||
appBar: AppBar( | ||
backgroundColor: AppColors.pink, | ||
elevation: 0, | ||
foregroundColor: AppColors.fg, | ||
title: const Text( | ||
'About', | ||
style: TextStyle( | ||
fontSize: 20, | ||
), | ||
), | ||
), | ||
body: Container( | ||
padding: const EdgeInsets.only( | ||
left: 16, | ||
right: 16, | ||
top: 16, | ||
bottom: 16, | ||
), | ||
alignment: Alignment.center, | ||
child: Column( | ||
children: [ | ||
const Image( | ||
image: AssetImage('assets/images/app_icon.png'), | ||
width: 150, | ||
height: 150, | ||
), | ||
const Padding( | ||
padding: EdgeInsets.only( | ||
top: 24, | ||
), | ||
child: Text( | ||
'Loc', | ||
textAlign: TextAlign.center, | ||
style: TextStyle( | ||
color: AppColors.fg, | ||
fontSize: 48, | ||
), | ||
), | ||
), | ||
const Padding( | ||
padding: EdgeInsets.only( | ||
top: 16, | ||
bottom: 8, | ||
), | ||
child: Text( | ||
'v0.2.2', | ||
textAlign: TextAlign.center, | ||
style: TextStyle( | ||
fontSize: 16, | ||
), | ||
), | ||
), | ||
const Padding( | ||
padding: EdgeInsets.only( | ||
top: 8, | ||
bottom: 16, | ||
), | ||
child: Text( | ||
'GPL v3 License', | ||
textAlign: TextAlign.center, | ||
style: TextStyle( | ||
fontSize: 16, | ||
), | ||
), | ||
), | ||
RichText( | ||
textAlign: TextAlign.center, | ||
text: TextSpan( | ||
style: const TextStyle( | ||
color: AppColors.fg, | ||
fontFamily: 'Fantasque', | ||
fontSize: 18, | ||
), | ||
children: [ | ||
const TextSpan( | ||
text: | ||
'Free and open-source location-based reminder for Android.\n\n', | ||
), | ||
const TextSpan( | ||
text: 'Designed by \n\n', | ||
), | ||
TextSpan( | ||
text: 'Abd El-Twab M. Fakhry\n\n', | ||
style: const TextStyle( | ||
color: AppColors.lavender, | ||
fontSize: 28, | ||
), | ||
recognizer: TapGestureRecognizer() | ||
..onTap = () async { | ||
const amf = 'https://abdeltwabmf.github.io/'; | ||
await _launchUrl(amf); | ||
}, | ||
), | ||
const TextSpan( | ||
text: 'Source Code can be found here on\n\n', | ||
), | ||
TextSpan( | ||
text: 'GitHub', | ||
style: const TextStyle( | ||
color: AppColors.coral, | ||
fontSize: 20, | ||
), | ||
recognizer: TapGestureRecognizer() | ||
..onTap = () async { | ||
const loc = 'https://github.com/AbdeltwabMF/Loc'; | ||
await _launchUrl(loc); | ||
}, | ||
), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} | ||
|
||
Future<void> _launchUrl(String url) async { | ||
if (!await launchUrl(Uri.parse(url))) { | ||
debugPrint('Can not launch $url'); | ||
} | ||
} |
Oops, something went wrong.