Merge branch 'fix_dashboard_issues' into 'development'

fix issue

See merge request Cloud_Solution/doctor_app_flutter!324
merge-requests/325/merge
Mohammad Aljammal 4 years ago
commit 6fb94caf3d

@ -140,49 +140,50 @@ class _DashboardScreenState extends State<DashboardScreen> {
Stack(children: [
Column(
children: <Widget>[
ProfileWelcomeWidget(
Container(
width: MediaQuery.of(context).size.width * .6,
// height: 100,
child: DropdownButtonHideUnderline(
child: DropdownButton(
dropdownColor: Colors.white,
iconEnabledColor: Colors.white,
isExpanded: true,
value: clinicId,
iconSize: 25,
elevation: 16,
selectedItemBuilder: (BuildContext context) {
return projectsProvider.doctorClinicsList
.map((item) {
return Row(
mainAxisSize: MainAxisSize.max,
children: <Widget>[
AppText(
item.clinicName,
fontSize: SizeConfig.textMultiplier * 2.1,
color: Colors.white,
),
],
);
}).toList();
},
onChanged: (newValue) {
clinicId = newValue;
changeClinic(newValue, context);
},
items: projectsProvider.doctorClinicsList.map((item) {
return DropdownMenuItem(
child: Text(
item.clinicName,
textAlign: TextAlign.end,
),
value: item.clinicID,
);
}).toList(),
)),
),
),
// ProfileWelcomeWidget(
// Container(
// width: MediaQuery.of(context).size.width * .6,
// // height: 100,
// child: DropdownButtonHideUnderline(
// child: DropdownButton(
// dropdownColor: Colors.white,
// iconEnabledColor: Colors.white,
// isExpanded: true,
// value: clinicId,
// iconSize: 25,
// elevation: 16,
// selectedItemBuilder: (BuildContext context) {
// return projectsProvider.doctorClinicsList
// .map((item) {
// return Row(
// mainAxisSize: MainAxisSize.max,
// children: <Widget>[
// AppText(
// item.clinicName,
// fontSize: SizeConfig.textMultiplier * 2.1,
// color: Colors.white,
// ),
// ],
// );
// }).toList();
// },
// onChanged: (newValue) {
// clinicId = newValue;
// changeClinic(newValue, context);
// },
// items: projectsProvider.doctorClinicsList.map((item) {
// return DropdownMenuItem(
// child: Text(
// item.clinicName,
// textAlign: TextAlign.end,
// ),
// value: item.clinicID,
// );
// }).toList(),
// )),
// ),
// ),
// InkWell(
// onTap: () async {
// showCupertinoPicker(

Loading…
Cancel
Save