Skip to content

Commit

Permalink
Updated EULA for Android
Browse files Browse the repository at this point in the history
(cherry picked from commit e88d703)
  • Loading branch information
Clon1998 committed Sep 6, 2023
1 parent 91c7902 commit 719b1a4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
15 changes: 15 additions & 0 deletions lib/ui/screens/setting/setting_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,21 @@ class SettingPage extends ConsumerWidget {
throw 'Could not launch $url';
}
}),
if (Platform.isAndroid)
TextButton(
style: TextButton.styleFrom(
minimumSize: Size.zero, // Set this
padding: EdgeInsets.zero,
textStyle: themeData.textTheme.bodySmall?.copyWith(color: themeData.colorScheme.secondary)),
child: const Text('EULA'),
onPressed: () async {
const String url = 'https://mobileraker.com/eula.html';
if (await canLaunchUrlString(url)) {
await launchUrlString(url, mode: LaunchMode.externalApplication);
} else {
throw 'Could not launch $url';
}
}),
TextButton(
style: TextButton.styleFrom(
minimumSize: Size.zero, // Set this
Expand Down
7 changes: 3 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.6.0+240
version: 2.6.1+245

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down Expand Up @@ -54,6 +54,8 @@ dependencies:
flutter_hooks: ^0.18.0
hooks_riverpod: ^2.3.8
riverpod_annotation: ^2.1.2
json_annotation: ^4.7.0


#routing
go_router: ^6.2.0
Expand All @@ -65,7 +67,6 @@ dependencies:
enum_to_string: ^2.0.1
uuid: ^3.0.5
url_launcher: ^6.1.6
json_annotation: ^4.7.0
logger: ^1.3.0
package_info_plus: ^3.0.1
permission_handler: ^10.4.3
Expand All @@ -74,13 +75,11 @@ dependencies:
#persisstent
hive: ^2.2.3
hive_flutter: ^1.1.0
file: ^6.1.2
flutter_secure_storage: ^8.0.0
share_plus: ^7.1.0
path_provider: ^2.1.0

#theme
cupertino_icons: ^1.0.2
flex_color_scheme: ^7.0.4
google_fonts: ^4.0.3

Expand Down

0 comments on commit 719b1a4

Please sign in to comment.