From f7e05fa327a157e1f4a9cde5ca28ef47041a5472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20=C5=A0ko=C5=99epa?= <58693944+Brambora0@users.noreply.github.com> Date: Mon, 10 Oct 2022 22:27:21 +0200 Subject: [PATCH] Fix/pri vyhledani lekare uvedena spatna specializace #365 (#410) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix/pri_vyhledani_lekare_uvedena_spatna_specializace (#365) opraveno po kliknutí na "Nemám lékaře" při objednávání se na prohlídku se otevře mapa s lékaři se specializací na prohlídku. (https://github.com/Loono-cz/loono-tasks/issues/79) * fix/pri_vyhledani_lekare_uvedena_spatna_specializace (#365) opraveno po kliknutí na "Nemám lékaře" při objednávání se na prohlídku se otevře mapa s lékaři se specializací na prohlídku. (https://github.com/Loono-cz/loono-tasks/issues/79) * Fix tests * Fix tests * fix format. Co-authored-by: Petr Noga --- lib/ui/screens/find_doctor/find_doctor.dart | 30 ++++++++++++++------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/lib/ui/screens/find_doctor/find_doctor.dart b/lib/ui/screens/find_doctor/find_doctor.dart index b5097a1f..b548898d 100644 --- a/lib/ui/screens/find_doctor/find_doctor.dart +++ b/lib/ui/screens/find_doctor/find_doctor.dart @@ -109,10 +109,12 @@ class FindDoctorScreenState extends State { } else { _canFirstSelectedSpecializationSet = true; } - final currDoctorDetail = - context.select((value) => value.doctorDetail); - final currSpec = - context.select((value) => value.currSpecialization); + final currDoctorDetail = context.select( + (value) => value.doctorDetail, + ); + final currSpec = context.select( + (value) => value.currSpecialization, + ); return Scaffold( appBar: widget.onCancelTap != null @@ -168,7 +170,9 @@ class FindDoctorScreenState extends State { _setMapOpacity(1); }, ), - SpecializationChipsList(showDefaultSpecs: currSpec == null), + SpecializationChipsList( + showDefaultSpecs: currSpec == null, + ), ], ), ), @@ -181,7 +185,10 @@ class FindDoctorScreenState extends State { await animateToPos( mapController, cameraPosition: CameraPosition( - target: LatLng(healthcareProvider.lat, healthcareProvider.lng), + target: LatLng( + healthcareProvider.lat, + healthcareProvider.lng, + ), zoom: MapVariables.DOCTOR_DETAIL_ZOOM, ), ); @@ -198,7 +205,10 @@ class FindDoctorScreenState extends State { const Align( alignment: Alignment.bottomLeft, child: Padding( - padding: EdgeInsets.only(left: 9, bottom: bottomGoogleLogoPadding), + padding: EdgeInsets.only( + left: 9, + bottom: bottomGoogleLogoPadding, + ), child: FeedbackButton(), ), ), @@ -232,8 +242,10 @@ class FindDoctorScreenState extends State { child: DoctorDetailSheet( key: const Key('findDoctorPage_doctorDetailSheet'), doctor: currDoctorDetail, - closeDetail: () => - _mapState.setDoctorDetail(null, unblockOnMoveMapFiltering: false), + closeDetail: () => _mapState.setDoctorDetail( + null, + unblockOnMoveMapFiltering: false, + ), ), ), ),