|
|
|
|
@ -132,122 +132,6 @@ class _RescheduleLeaveScreen extends State<RescheduleLeaveScreen> {
|
|
|
|
|
widthFactor: 0.9,
|
|
|
|
|
child: ListView(
|
|
|
|
|
children: [
|
|
|
|
|
// Container(
|
|
|
|
|
// margin: EdgeInsets.all(8),
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// borderRadius: BorderRadius.all(
|
|
|
|
|
// Radius.circular(6.0)),
|
|
|
|
|
// border: Border.all(
|
|
|
|
|
// width: 1.0,
|
|
|
|
|
// color: HexColor("#CCCCCC"))),
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// child: Padding(
|
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
|
// top: SizeConfig.widthMultiplier * 0.9,
|
|
|
|
|
// bottom:
|
|
|
|
|
// SizeConfig.widthMultiplier * 0.9,
|
|
|
|
|
// right: SizeConfig.widthMultiplier * 3,
|
|
|
|
|
// left: SizeConfig.widthMultiplier * 3),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment:
|
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Row(
|
|
|
|
|
// mainAxisSize: MainAxisSize.max,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Expanded(
|
|
|
|
|
// // add Expanded to have your dropdown button fill remaining space
|
|
|
|
|
// child:
|
|
|
|
|
// DropdownButtonHideUnderline(
|
|
|
|
|
// child: new IgnorePointer(
|
|
|
|
|
// ignoring: true,
|
|
|
|
|
// child: DropdownButton(
|
|
|
|
|
// focusColor:
|
|
|
|
|
// Colors.grey,
|
|
|
|
|
// isExpanded: true,
|
|
|
|
|
// dropdownColor:
|
|
|
|
|
// Colors.grey,
|
|
|
|
|
// value: getClinicName(
|
|
|
|
|
// model) ??
|
|
|
|
|
// "",
|
|
|
|
|
// iconSize: 0,
|
|
|
|
|
// elevation: 16,
|
|
|
|
|
// selectedItemBuilder:
|
|
|
|
|
// (BuildContext
|
|
|
|
|
// context) {
|
|
|
|
|
// return model
|
|
|
|
|
// .getClinicNameList()
|
|
|
|
|
// .map((item) {
|
|
|
|
|
// return Row(
|
|
|
|
|
// mainAxisSize:
|
|
|
|
|
// MainAxisSize
|
|
|
|
|
// .max,
|
|
|
|
|
// children: <
|
|
|
|
|
// Widget>[
|
|
|
|
|
// AppText(
|
|
|
|
|
// item,
|
|
|
|
|
// fontSize:
|
|
|
|
|
// SizeConfig.textMultiplier *
|
|
|
|
|
// 2.1,
|
|
|
|
|
// color: Colors
|
|
|
|
|
// .grey[
|
|
|
|
|
// 500],
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// );
|
|
|
|
|
// }).toList();
|
|
|
|
|
// },
|
|
|
|
|
// onChanged:
|
|
|
|
|
// (newValue) =>
|
|
|
|
|
// {},
|
|
|
|
|
// items: model
|
|
|
|
|
// .getClinicNameList()
|
|
|
|
|
// .map((item) {
|
|
|
|
|
// return DropdownMenuItem(
|
|
|
|
|
// value: item
|
|
|
|
|
// .toString(),
|
|
|
|
|
// child: Text(
|
|
|
|
|
// item,
|
|
|
|
|
// textAlign:
|
|
|
|
|
// TextAlign
|
|
|
|
|
// .end,
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// }).toList(),
|
|
|
|
|
// ))),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// )),
|
|
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
|
// margin: EdgeInsets.all(8),
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// borderRadius:
|
|
|
|
|
// BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
|
// border: Border.all(
|
|
|
|
|
// width: 1.0,
|
|
|
|
|
// color: HexColor("#CCCCCC"))),
|
|
|
|
|
// padding: EdgeInsets.all(5),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// new IgnorePointer(
|
|
|
|
|
// ignoring: true,
|
|
|
|
|
// child: AppTextFormField(
|
|
|
|
|
// readOnly: true,
|
|
|
|
|
// hintText: profile != null
|
|
|
|
|
// ? profile['DoctorName']
|
|
|
|
|
// : "",
|
|
|
|
|
// borderColor: Colors.white,
|
|
|
|
|
// onSaved: (value) {},
|
|
|
|
|
// inputFormatter: ONLY_NUMBERS))
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(8),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
@ -721,11 +605,6 @@ class _RescheduleLeaveScreen extends State<RescheduleLeaveScreen> {
|
|
|
|
|
getSelectedDoctor(
|
|
|
|
|
model2),
|
|
|
|
|
showSearchBox: true,
|
|
|
|
|
// searchBoxDecoration: InputDecoration(
|
|
|
|
|
// border: OutlineInputBorder(),
|
|
|
|
|
// contentPadding: EdgeInsets.fromLTRB(12, 12, 8, 0),
|
|
|
|
|
// labelText: "Search Doctor",
|
|
|
|
|
// ),
|
|
|
|
|
popupTitle: Container(
|
|
|
|
|
height: 50,
|
|
|
|
|
decoration:
|
|
|
|
|
@ -770,67 +649,6 @@ class _RescheduleLeaveScreen extends State<RescheduleLeaveScreen> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// DropdownButtonHideUnderline(
|
|
|
|
|
// child: DropdownButton(
|
|
|
|
|
// focusColor: Colors.grey,
|
|
|
|
|
// isExpanded: true,
|
|
|
|
|
// value: doctorID == null
|
|
|
|
|
// ? model2
|
|
|
|
|
// .coveringDoctors[0]
|
|
|
|
|
// ['doctorID']
|
|
|
|
|
// .toString()
|
|
|
|
|
// : doctorID,
|
|
|
|
|
// iconSize: 40,
|
|
|
|
|
// elevation: 16,
|
|
|
|
|
// selectedItemBuilder:
|
|
|
|
|
// (BuildContext context) {
|
|
|
|
|
// return model2
|
|
|
|
|
// .coveringDoctors
|
|
|
|
|
// .map((item) {
|
|
|
|
|
// return Row(
|
|
|
|
|
// mainAxisSize:
|
|
|
|
|
// MainAxisSize.max,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// AppText(
|
|
|
|
|
// projectsProvider
|
|
|
|
|
// .isArabic
|
|
|
|
|
// ? item[
|
|
|
|
|
// 'doctorNameN']
|
|
|
|
|
// : item[
|
|
|
|
|
// 'doctorName'],
|
|
|
|
|
// fontSize: SizeConfig
|
|
|
|
|
// .textMultiplier *
|
|
|
|
|
// 2.1,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// );
|
|
|
|
|
// }).toList();
|
|
|
|
|
// },
|
|
|
|
|
// onChanged: (newValue) => {
|
|
|
|
|
// setState(() {
|
|
|
|
|
// doctorID = newValue;
|
|
|
|
|
// })
|
|
|
|
|
// },
|
|
|
|
|
// items: model2
|
|
|
|
|
// .coveringDoctors
|
|
|
|
|
// .map((item) {
|
|
|
|
|
// return DropdownMenuItem<
|
|
|
|
|
// String>(
|
|
|
|
|
// value: item['doctorID']
|
|
|
|
|
// .toString(),
|
|
|
|
|
// child: Text(
|
|
|
|
|
// projectsProvider
|
|
|
|
|
// .isArabic
|
|
|
|
|
// ? item[
|
|
|
|
|
// 'doctorNameN']
|
|
|
|
|
// : item[
|
|
|
|
|
// 'doctorName'],
|
|
|
|
|
// textAlign:
|
|
|
|
|
// TextAlign.start,
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// }).toList(),
|
|
|
|
|
// )),
|
|
|
|
|
)
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
],
|
|
|
|
|
|