Skip to content

Commit 18a6a19

Browse files
committed
implements share functionality that i missed
fix more grammatical mistakes ready to release to production
1 parent 76c9668 commit 18a6a19

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

lib/views/contributionPage.dart

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
22
import 'package:flutter/services.dart';
33
import 'package:flutter_svg/flutter_svg.dart';
44
import 'package:fluttertoast/fluttertoast.dart';
5-
5+
import 'package:share/share.dart';
66
import '../CONSTANTS.dart' as Constants;
77
import '../utils/launchUrl.dart';
88

@@ -26,24 +26,25 @@ class ContributionPage extends StatelessWidget {
2626
child: Column(
2727
children: [
2828
Text(
29-
'Alhamdulillah. Thank you for your interest in donating to Malaysia Prayer Time app. May Allah SWT reward your kindness.'),
29+
'Alhamdulillah. Thank you for your interest in donating to the Malaysia Prayer Time app. May Allah SWT rewards your kindness.'),
3030
SizedBox(
3131
height: 8,
3232
),
3333
MyCard(
3434
title: 'Share the app',
3535
description:
36-
'One of tiny acts of kindness. Share your experience on using this app to your family and friends.',
36+
'Share your experience on using this app with your family and friends.',
3737
buttonContent: [
38-
ButtonContent('Share the app', () {
39-
print('pressed form class');
38+
ButtonContent('Share now', () {
39+
Share.share(
40+
"Hi. I'm using the Malaysia Prayer Time app. It's fast and free. Download now on Google Play: bit.ly/MPTdl");
4041
})
4142
]),
4243
Divider(),
4344
MyCard(
4445
title: 'Buy me a coffee?',
4546
description:
46-
'One cup of nescafe usually enough for me to code all night.\n\n${Constants.kBuyMeACoffeeLink.substring(12)}', //substring will remove 'https://www' stuffs.
47+
'One cup of Nescafe is usually enough for me to code all night.\n\n${Constants.kBuyMeACoffeeLink.substring(12)}', //substring will remove 'https://www' stuffs.
4748
buttonContent: [
4849
ButtonContent(
4950
'Copy',
@@ -55,9 +56,9 @@ class ContributionPage extends StatelessWidget {
5556
],
5657
),
5758
MyCard(
58-
title: 'Support via Malaysian bank',
59+
title: 'Direct support',
5960
description:
60-
'${Constants.kMaybankAccNo} - Muhammad Fareez (Maybank)',
61+
'${Constants.kMaybankAccNo} - Muhammad Fareez Iqmal (Maybank)',
6162
buttonContent: [
6263
ButtonContent(
6364
'Copy',
@@ -68,7 +69,7 @@ class ContributionPage extends StatelessWidget {
6869
MyCard(
6970
title: 'Contribute to source',
7071
description:
71-
'MPT is now open source. Report any bugs or contribute directly to the source code. Licensed under GNU GPLv3',
72+
'MPT is now open source. Report any bugs or contribute directly to the source code. It is licensed under GNU GPLv3.',
7273
buttonContent: [
7374
ButtonContent(
7475
'Copy', () => copyClipboard(Constants.kGithubRepoLink)),

0 commit comments

Comments
 (0)