From e1868b9a14f5a73d9b4a165ac5e528fa84e236f2 Mon Sep 17 00:00:00 2001 From: estevez-dev Date: Thu, 4 Apr 2019 21:43:23 +0300 Subject: [PATCH] Add privacy polici and terms and conditions links --- lib/main.dart | 26 ++++++++++++++++++++++++++ pubspec.yaml | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 460ffe3..ad74595 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -414,6 +414,32 @@ class _MainPageState extends State with WidgetsBindingObserver, Ticker decoration: TextDecoration.underline ), ), + ), + GestureDetector( + onTap: () { + Navigator.of(context).pop(); + HAUtils.launchURLInCustomTab(context, "http://ha-client.homemade.systems/terms_and_conditions"); + }, + child: Text( + "Terms and Conditions", + style: TextStyle( + color: Colors.blue, + decoration: TextDecoration.underline + ), + ), + ), + GestureDetector( + onTap: () { + Navigator.of(context).pop(); + HAUtils.launchURLInCustomTab(context, "http://ha-client.homemade.systems/privacy_policy"); + }, + child: Text( + "Privacy Policy", + style: TextStyle( + color: Colors.blue, + decoration: TextDecoration.underline + ), + ), ) ], applicationName: appName, diff --git a/pubspec.yaml b/pubspec.yaml index 5390d6c..a3b41bf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: hass_client description: Home Assistant Android Client -version: 0.5.2+100 +version: 0.5.3+102 environment: sdk: ">=2.0.0-dev.68.0 <3.0.0"