Skip to content

Commit 8ace579

Browse files
committed
Added privacy policy
1 parent 41e0389 commit 8ace579

File tree

4 files changed

+45
-4
lines changed

4 files changed

+45
-4
lines changed

android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (flutterRoot == null) {
1313

1414
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1515
if (flutterVersionCode == null) {
16-
flutterVersionCode = '341'
16+
flutterVersionCode = '342'
1717
}
1818

1919
def flutterVersionName = localProperties.getProperty('flutter.versionName')

lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ import 'package:workmanager/workmanager.dart';
5151

5252
// TODO: CONFIGURE FOR APP RELEASE, include exceptions in Drawer if applicable
5353
const String appVersion = '3.1.8';
54-
const String androidCompilation = '341';
55-
const String iosCompilation = '341';
54+
const String androidCompilation = '342';
55+
const String iosCompilation = '342';
5656

5757
final FirebaseAnalytics analytics = FirebaseAnalytics.instance;
5858

lib/pages/about.dart

+41
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,47 @@ class AboutPageState extends State<AboutPage> {
596596
],
597597
),
598598
),
599+
Padding(
600+
padding: const EdgeInsets.fromLTRB(20, 15, 30, 10),
601+
child: Row(
602+
children: <Widget>[
603+
Flexible(
604+
child: RichText(
605+
text: TextSpan(
606+
text: "See Torn PDA's ",
607+
style: DefaultTextStyle.of(context).style,
608+
children: <InlineSpan>[
609+
WidgetSpan(
610+
child: GestureDetector(
611+
onTap: () {
612+
const url = 'https://info.tornpda.com/pda-privacy.html';
613+
context.read<WebViewProvider>().openBrowserPreference(
614+
context: context,
615+
url: url,
616+
browserTapType: BrowserTapType.short,
617+
);
618+
},
619+
onLongPress: () {
620+
const url = 'https://info.tornpda.com/pda-privacy.html';
621+
context.read<WebViewProvider>().openBrowserPreference(
622+
context: context,
623+
url: url,
624+
browserTapType: BrowserTapType.long,
625+
);
626+
},
627+
child: const Text(
628+
'privacy policy',
629+
style: TextStyle(color: Colors.blue),
630+
),
631+
),
632+
),
633+
],
634+
),
635+
),
636+
),
637+
],
638+
),
639+
),
599640
const SizedBox(height: 60),
600641
],
601642
),

lib/utils/changelog.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ChangeLogState extends State<ChangeLog> {
3939
void _createItems() {
4040
final itemList = <ChangeLogItem>[];
4141

42-
// Build 341 - 13/10/2023
42+
// Build 342 - 14/10/2023
4343

4444
// VERSION 3.1.8
4545
final v3_1_8 = ChangeLogItem();

0 commit comments

Comments
 (0)