From 63db56a66b3f46ae5e0d64d3f868e6e847b75478 Mon Sep 17 00:00:00 2001 From: Mohammad Aljammal Date: Tue, 23 Feb 2021 13:33:34 +0200 Subject: [PATCH] fix issue --- lib/screens/dashboard_screen.dart | 87 ++++++++++++++++--------------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/lib/screens/dashboard_screen.dart b/lib/screens/dashboard_screen.dart index d2369e9d..7769f947 100644 --- a/lib/screens/dashboard_screen.dart +++ b/lib/screens/dashboard_screen.dart @@ -140,49 +140,50 @@ 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(