|
|
|
|
@ -63,7 +63,6 @@ class _InPatientScreenState extends State<InPatientScreen>
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
final screenSize = MediaQuery.of(context).size;
|
|
|
|
|
PatientSearchRequestModel requestModel = PatientSearchRequestModel();
|
|
|
|
|
ProjectViewModel projectsProvider = Provider.of<ProjectViewModel>(context);
|
|
|
|
|
|
|
|
|
|
return BaseView<PatientSearchViewModel>(
|
|
|
|
|
onModelReady: (model) async {
|
|
|
|
|
@ -142,13 +141,13 @@ class _InPatientScreenState extends State<InPatientScreen>
|
|
|
|
|
// unselectedLabelColor: Colors.grey[800],
|
|
|
|
|
tabs: [
|
|
|
|
|
tabWidget(screenSize, _activeTab == 0,
|
|
|
|
|
TranslationBase.of(context).inPatientAll,
|
|
|
|
|
TranslationBase.of(context).inPatientAll,context: context,
|
|
|
|
|
counter: model.inPatientList.length, isFirst: true),
|
|
|
|
|
tabWidget(screenSize, _activeTab == 1,
|
|
|
|
|
TranslationBase.of(context).myInPatientTitle,
|
|
|
|
|
counter: model.myIinPatientList.length, isMiddle: true),
|
|
|
|
|
counter: model.myIinPatientList.length, isMiddle: true, context: context,),
|
|
|
|
|
tabWidget(screenSize, _activeTab == 2,
|
|
|
|
|
TranslationBase.of(context).discharged, isLast:true),
|
|
|
|
|
TranslationBase.of(context).discharged, isLast:true, context: context,),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -201,11 +200,15 @@ class _InPatientScreenState extends State<InPatientScreen>
|
|
|
|
|
{int counter = -1,
|
|
|
|
|
bool isFirst = false,
|
|
|
|
|
bool isMiddle = false,
|
|
|
|
|
bool isLast = false,}) {
|
|
|
|
|
bool isLast = false,BuildContext context}) {
|
|
|
|
|
|
|
|
|
|
ProjectViewModel projectsProvider = Provider.of<ProjectViewModel>(context);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: Helpers.getTabHeight(context),
|
|
|
|
|
decoration:Helpers.getBoxTabsBoxDecoration(isActive: isActive,isFirst: isFirst, isMiddle: isMiddle, isLast: isLast),
|
|
|
|
|
decoration:Helpers.getBoxTabsBoxDecoration(isActive: isActive,isFirst: isFirst, isMiddle: isMiddle, isLast: isLast,projectViewModel: projectsProvider),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
|