-
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.
- Loading branch information
1 parent
db82c97
commit 3df7110
Showing
6 changed files
with
127 additions
and
0 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
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,11 @@ | ||
import 'package:package_info_plus/package_info_plus.dart'; | ||
|
||
class PackageInfoPlusHelper { | ||
static String version = ""; | ||
static String build = ""; | ||
static Future init() async { | ||
PackageInfo packageInfo = await PackageInfo.fromPlatform(); | ||
version = packageInfo.version; | ||
build = packageInfo.buildNumber; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import 'package:app/package_info_helper.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:app/back_button.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
class AboutUs extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: Center( | ||
child: SingleChildScrollView( | ||
child: SafeArea( | ||
child: | ||
Column(mainAxisAlignment: MainAxisAlignment.center, children: [ | ||
Text( | ||
"AnyPay", | ||
style: TextStyle(fontSize: 40, fontWeight: FontWeight.w500), | ||
), | ||
SizedBox( | ||
height: 10, | ||
), | ||
Text("[email protected]"), | ||
SizedBox( | ||
height: 10, | ||
), | ||
_clickable( | ||
url: "https://docs.anypayx.com/terms", | ||
title: "Terms of Service"), | ||
SizedBox( | ||
height: 10, | ||
), | ||
_clickable( | ||
url: "https://docs.anypayx.com/privacy", | ||
title: "Privacy Policy"), | ||
SizedBox( | ||
height: 10, | ||
), | ||
_clickable( | ||
url: "https://docs.anypayx.com/", title: "Documentation"), | ||
SizedBox( | ||
height: 10, | ||
), | ||
Text( | ||
"${PackageInfoPlusHelper.version} [Build ${PackageInfoPlusHelper.build}]", | ||
style: TextStyle(fontStyle: FontStyle.italic), | ||
), | ||
SizedBox( | ||
height: 10, | ||
), | ||
Text( | ||
"2024", | ||
style: TextStyle(fontStyle: FontStyle.italic), | ||
), | ||
SizedBox( | ||
height: 10, | ||
), | ||
CircleBackButton( | ||
margin: EdgeInsets.only(top: 20.0), | ||
backPath: '/settings', | ||
), | ||
]), | ||
), | ||
), | ||
), | ||
); | ||
} | ||
Widget _clickable({required String title, required String url}) { | ||
return GestureDetector( | ||
onTap: () async { | ||
await launchUrl(Uri.parse(url)); | ||
}, | ||
child: Column( | ||
children: [ | ||
Text( | ||
title, | ||
style: TextStyle( | ||
decoration: TextDecoration.underline, | ||
decorationColor: Colors.blue, | ||
), | ||
), | ||
], | ||
)); | ||
} | ||
} |
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