From 9ffe1eabd209733bd578a46682c0071a4693bff7 Mon Sep 17 00:00:00 2001 From: Mohammad Aljammal Date: Tue, 23 Feb 2021 13:47:51 +0200 Subject: [PATCH] revert the code --- lib/screens/dashboard_screen.dart | 87 +++++++++++++++---------------- 1 file changed, 43 insertions(+), 44 deletions(-) diff --git a/lib/screens/dashboard_screen.dart b/lib/screens/dashboard_screen.dart index 7769f947..d2369e9d 100644 --- a/lib/screens/dashboard_screen.dart +++ b/lib/screens/dashboard_screen.dart @@ -140,50 +140,49 @@ class _DashboardScreenState extends State { Stack(children: [ Column( children: [ - - // 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: [ - // 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: [ + 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(