voice command

merge-requests/140/head
Sultan Khan 4 years ago
parent 7742313923
commit 188b72bb90

@ -77,8 +77,10 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
_changeCurrentTab(int tab) {
setState(() {
currentTab = tab;
if (tab != 0)
pageController.jumpToPage(tab);
else
this.triggerRobot();
});
}
@ -445,7 +447,8 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
index: currentTab,
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
floatingActionButton: (projectViewModel.havePrivilege(34) && currentTab == 0)
floatingActionButton:
(projectViewModel.havePrivilege(34) && currentTab == 0)
? FloatingButton(
elevation: true,
onTap: () {

@ -55,7 +55,11 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
projectViewModel = Provider.of(context);
var appoCountProvider = Provider.of<ToDoCountProviderModel>(context);
List<Widget> myMedicalList = Utils.myMedicalList(projectViewModel: projectViewModel,context: context,count: appoCountProvider.count,isLogin: projectViewModel.isLogin);
List<Widget> myMedicalList = Utils.myMedicalList(
projectViewModel: projectViewModel,
context: context,
count: appoCountProvider.count,
isLogin: projectViewModel.isLogin);
return BaseView<MedicalViewModel>(
onModelReady: (model) => model.getAppointmentHistory(),
builder: (_, model, widget) => AppScaffold(
@ -96,20 +100,25 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
],
),
),
SizedBox(height: 50,),
SizedBox(
height: 50,
),
Padding(
padding: EdgeInsets.symmetric(vertical: 5.0),
child: GridView.builder(
shrinkWrap: true,
primary: false,
physics: NeverScrollableScrollPhysics(),
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 3,
childAspectRatio: MediaQuery.of(context).size.width / (MediaQuery.of(context).size.height / 2.40),
childAspectRatio: MediaQuery.of(context)
.size
.width /
(MediaQuery.of(context).size.height / 2.40),
),
itemCount: myMedicalList.length,
itemBuilder: (BuildContext context, int index) {
return myMedicalList[index];
},
),
@ -117,8 +126,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
],
),
SizedBox(
height:
MediaQuery.of(context).size.height * 0.12,
height: MediaQuery.of(context).size.height * 0.12,
),
if (model.user != null && model.isLogin)
Positioned(
@ -183,18 +191,15 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
}
fullMedicalData() {
if(projectViewModel.havePrivilege(5))
{}
if (projectViewModel.havePrivilege(5)) {}
}
}
class Medical {
final String title;
final String imagePath;
final String subTitle;
final Widget page;
Medical({this.title, this.imagePath, this.subTitle, this.page});
}

@ -93,7 +93,7 @@ class _BottomNavBarState extends State<BottomNavBar> {
currentIndex: 4,
name: TranslationBase.of(context).todoList,
),
if (widget.index == 0 && projectViewModel.havePrivilege(77))
if (projectViewModel.havePrivilege(77))
BottomNavigationItem(
icon: DQIcons.roboticon,
activeIcon: DQIcons.roboticon,

Loading…
Cancel
Save