|
|
|
@ -89,7 +89,11 @@ class _SearchByHospitalState extends State<SearchByHospital> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
mHeight(8),
|
|
|
|
mHeight(8),
|
|
|
|
Container(
|
|
|
|
InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
openDropdown(projectDropdownKey);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: containerRadius(Colors.white, 12),
|
|
|
|
decoration: containerRadius(Colors.white, 12),
|
|
|
|
margin: EdgeInsets.only(left: 20, right: 20),
|
|
|
|
margin: EdgeInsets.only(left: 20, right: 20),
|
|
|
|
@ -113,6 +117,7 @@ class _SearchByHospitalState extends State<SearchByHospital> {
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
child: DropdownButtonHideUnderline(
|
|
|
|
child: DropdownButtonHideUnderline(
|
|
|
|
child: DropdownButton<HospitalsModel>(
|
|
|
|
child: DropdownButton<HospitalsModel>(
|
|
|
|
|
|
|
|
key: projectDropdownKey,
|
|
|
|
hint: Text(
|
|
|
|
hint: Text(
|
|
|
|
TranslationBase.of(context).selectHospital),
|
|
|
|
TranslationBase.of(context).selectHospital),
|
|
|
|
value: selectedHospital,
|
|
|
|
value: selectedHospital,
|
|
|
|
@ -154,6 +159,7 @@ class _SearchByHospitalState extends State<SearchByHospital> {
|
|
|
|
Icon(Icons.keyboard_arrow_down),
|
|
|
|
Icon(Icons.keyboard_arrow_down),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
|
|
|
|
),
|
|
|
|
if (clinicIds?.isNotEmpty == true) ...[
|
|
|
|
if (clinicIds?.isNotEmpty == true) ...[
|
|
|
|
mHeight(8),
|
|
|
|
mHeight(8),
|
|
|
|
InkWell(
|
|
|
|
InkWell(
|
|
|
|
@ -228,8 +234,23 @@ class _SearchByHospitalState extends State<SearchByHospital> {
|
|
|
|
|
|
|
|
|
|
|
|
void openDropdown(GlobalKey key) {
|
|
|
|
void openDropdown(GlobalKey key) {
|
|
|
|
GestureDetector? detector;
|
|
|
|
GestureDetector? detector;
|
|
|
|
detector = searchForGestureDetector(key.currentContext!);
|
|
|
|
|
|
|
|
|
|
|
|
void searchForGestureDetector(BuildContext element) {
|
|
|
|
|
|
|
|
element.visitChildElements((element) {
|
|
|
|
|
|
|
|
if (element.widget != null && element.widget is GestureDetector) {
|
|
|
|
|
|
|
|
detector = element.widget as GestureDetector?;
|
|
|
|
|
|
|
|
//return false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
searchForGestureDetector(element);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//return true;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
searchForGestureDetector(key.currentContext!);
|
|
|
|
assert(detector != null);
|
|
|
|
assert(detector != null);
|
|
|
|
|
|
|
|
|
|
|
|
detector!.onTap!();
|
|
|
|
detector!.onTap!();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|