update external api call start

This commit is contained in:
Mohamed Nouffer
2023-01-12 12:32:08 +05:30
parent 615c086c24
commit 4a7b4a531c
6 changed files with 37 additions and 13 deletions

View File

@ -117,6 +117,13 @@ class DrawerPage extends StatelessWidget {
},
) :
Container(width: 0, height: 0,),
ListTile(
leading: const Icon(Icons.privacy_tip),
title: Text("privacy".tr),
onTap: (){
_launchURL("https://rogaining.sumasen.net/api/privacy/");
},
)
// ListTile(
// leading: const Icon(Icons.router),
// title: Text("my_route".tr),

View File

@ -39,7 +39,7 @@ class ExternalService {
//print("--- _team : ${_team}-----");
String _event_code = indexController.currentUser[0]["user"]["event_code"];
if(indexController.connectionStatusName != "wifi" || indexController.connectionStatusName != "mobile"){
if(indexController.connectionStatusName != "wifi" && indexController.connectionStatusName != "mobile"){
DatabaseHelper db = DatabaseHelper.instance;
Rog _rog = Rog(
id:1,
@ -84,7 +84,7 @@ class ExternalService {
if(imageurl != null){
if(indexController.connectionStatusName != "wifi" || indexController.connectionStatusName != "mobile"){
if(indexController.connectionStatusName != "wifi" && indexController.connectionStatusName != "mobile"){
DatabaseHelper db = DatabaseHelper.instance;
Rog _rog = Rog(
id:1,

View File

@ -70,7 +70,8 @@ class StringValues extends Translations{
"You have not reached the goal yet.":"You have not reached the goal yet.",
"delete_account": "Delete account",
"accounted_deleted": "Account deleted",
"account_deleted_message": "your account has beed successfully deleted"
"account_deleted_message": "your account has beed successfully deleted",
"privacy": "Privacy policy"
},
'ja_JP': {
'drawer_title':'ロゲイニング参加者はログイン するとチェックポイントが参照 できます',
@ -141,7 +142,8 @@ class StringValues extends Translations{
"You have not reached the goal yet.":"あなたはまだゴールに達していません。",
"delete_account": "アカウントを削除する",
"accounted_deleted": "アカウントが削除されました",
"account_deleted_message": "あなたのアカウントは正常に削除されました"
"account_deleted_message": "あなたのアカウントは正常に削除されました",
"privacy": "プライバシーポリシー"
},
};
}