|
|
|
@ -21,7 +21,6 @@ class RequestCategoryFragment extends StatelessWidget {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Consumer<DashBoardProvider>(builder: (context, dashboardProvider, child) {
|
|
|
|
return Consumer<DashBoardProvider>(builder: (context, dashboardProvider, child) {
|
|
|
|
bool isNurse = (Provider.of<UserProvider>(context, listen: false).user?.type) == UsersTypes.normal_user;
|
|
|
|
bool isNurse = (Provider.of<UserProvider>(context, listen: false).user?.type) == UsersTypes.normal_user;
|
|
|
|
debugPrint('condition i got is ${dashboardProvider.requestDetailList }');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[
|
|
|
|
return Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[
|
|
|
|
//TODO uncommit this to get the calendar card..
|
|
|
|
//TODO uncommit this to get the calendar card..
|
|
|
|
@ -65,7 +64,7 @@ class RequestCategoryFragment extends StatelessWidget {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
})).paddingOnly(start: 16, end: 16, top: 16)
|
|
|
|
})).paddingOnly(start: 16, end: 16, top: 16)
|
|
|
|
: (dashboardProvider.requestDetailList==null||dashboardProvider.requestDetailList?.data?.isEmpty==true)
|
|
|
|
: (dashboardProvider.requestDetailList==null||dashboardProvider.requestDetailList?.data?.isEmpty==true)
|
|
|
|
? const NoDataFound().paddingOnly(top: 50).center
|
|
|
|
? const NoDataFound().paddingOnly(top: 80).center
|
|
|
|
: RequestCategoryList(dashboardProvider.requestDetailList?.data ?? <Data>[], dashboardProvider.isDetailLoading, dashboardProvider.requestDetailList?.totalRows ?? 0),
|
|
|
|
: RequestCategoryList(dashboardProvider.requestDetailList?.data ?? <Data>[], dashboardProvider.isDetailLoading, dashboardProvider.requestDetailList?.totalRows ?? 0),
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|