voice command priv

merge-requests/140/head
Sultan Khan 5 years ago
parent a004610ac3
commit 7f44677242

@ -52,6 +52,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
ProjectViewModel projectViewModel;
var notificationCount = '';
var themeNotifier;
///inject the user data
AuthenticatedUserObject authenticatedUserObject =
locator<AuthenticatedUserObject>();
@ -77,6 +78,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
setState(() {
currentTab = tab;
pageController.jumpToPage(tab);
});
}
@ -144,7 +146,6 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
WidgetsBinding.instance
.addPostFrameCallback((_) => locationUtils.getCurrentLocation());
if (Platform.isIOS) {
_firebaseMessaging.requestNotificationPermissions();
}
@ -430,7 +431,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
children: [
HomePage(
goToMyProfile: () {
_changeCurrentTab(1);
// _changeCurrentTab(1);
},
),
MedicalProfilePage(),
@ -471,6 +472,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
return TranslationBase.of(context).bookAppo;
}
}
setTheme() async {
//
// defaultTheme =
@ -524,8 +526,9 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
.then((res) => {print(res)});
authService.getDashboard().then((value) => {
setState(() {
notificationCount = value['List_PatientDashboard']
[0]['UnreadPatientNotificationCount'].toString();
notificationCount = value['List_PatientDashboard'][0]
['UnreadPatientNotificationCount']
.toString();
})
});
}
@ -557,6 +560,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
_changeCurrentTab(2);
}
}
login() async {
var data = await sharedPref.getObject(IMEI_USER_DATA);
sharedPref.remove(REGISTER_DATA_FOR_LOGIIN);

@ -135,7 +135,7 @@ class AppScaffold extends StatelessWidget {
// return body; //Stack(children: <Widget>[body, buildAppLoaderWidget(isLoading)]);
return Stack(children: <Widget>[
body,
isHelp==true ? RobotIcon() : Container()
isHelp==true && Provider.of<ProjectViewModel>(context, listen: false).havePrivilege(77) ? RobotIcon() : Container()
]);
}
}

@ -221,6 +221,8 @@ class _FloatingSearchButton extends State<FloatingSearchButton>
reconizedWord = result.recognizedWords;
event.setValue({"searchText": reconizedWord});
if (result.finalResult == true) {
RoboSearch.closeAlertDialog(context);
// setState(() {
// setState(() {

Loading…
Cancel
Save