|
|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/doctor/list_doctor_working_hours_table_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/routes.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/dr_app_shared_pref.dart';
|
|
|
|
|
@ -9,6 +10,7 @@ import '../config/size_config.dart';
|
|
|
|
|
import '../util/dr_app_toast_msg.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:connectivity/connectivity.dart';
|
|
|
|
|
import 'dr_app_shared_pref.dart';
|
|
|
|
|
|
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
|
|
|
|
|
|
@ -22,6 +24,8 @@ DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
|
class Helpers {
|
|
|
|
|
int cupertinoPickerIndex = 0;
|
|
|
|
|
|
|
|
|
|
get currentLanguage => null;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
*@author: Elham Rababah
|
|
|
|
|
*@Date:12/4/2020
|
|
|
|
|
@ -340,7 +344,9 @@ class Helpers {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
logout() async {
|
|
|
|
|
String lang = await sharedPref.getString(APP_Language);
|
|
|
|
|
await clearSharedPref();
|
|
|
|
|
sharedPref.setString(APP_Language, lang);
|
|
|
|
|
Navigator.of(AppGlobal.CONTEX).pushReplacementNamed(LOGIN);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|