|
|
|
|
@ -5,6 +5,7 @@ import 'package:doctor_app_flutter/models/dashboard/get_special_clinical_care_Li
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
class InPatientHeader extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
@ -52,14 +53,13 @@ class InPatientHeader extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
activeTab != 2)
|
|
|
|
|
Container(
|
|
|
|
|
width: MediaQuery.of(context).size.width * .3,
|
|
|
|
|
child: DropdownButtonHideUnderline(
|
|
|
|
|
child
|
|
|
|
|
: DropdownButtonHideUnderline(
|
|
|
|
|
child: DropdownButton(
|
|
|
|
|
dropdownColor: Colors.white,
|
|
|
|
|
iconEnabledColor: Colors.black,
|
|
|
|
|
isExpanded: true,
|
|
|
|
|
value: selectedMapId == null
|
|
|
|
|
? TranslationBase.of(context).all
|
|
|
|
|
: selectedMapId,
|
|
|
|
|
value: selectedMapId??model.specialClinicalCareMappingList[0].nursingStationID,
|
|
|
|
|
iconSize: 25,
|
|
|
|
|
elevation: 16,
|
|
|
|
|
selectedItemBuilder: (BuildContext context) {
|
|
|
|
|
@ -84,17 +84,19 @@ class InPatientHeader extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model.specialClinicalCareMappingList.length
|
|
|
|
|
model.specialClinicalCareMappingList
|
|
|
|
|
.length
|
|
|
|
|
.toString(),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize:
|
|
|
|
|
projectsProvider.isArabic ? 10 : 11,
|
|
|
|
|
fontSize: projectsProvider.isArabic
|
|
|
|
|
? 10
|
|
|
|
|
: 11,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
),
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
AppText(item.description,
|
|
|
|
|
AppText(selectedMapId == null?TranslationBase.of(context).all:item.description,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
|