From 11d358f185460733ab7c0362fb2f7cb5482960f8 Mon Sep 17 00:00:00 2001 From: ryr0121 Date: Fri, 1 Dec 2023 18:29:19 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EC=B0=A8=EB=9F=89=20=EC=98=88?= =?UTF-8?q?=EC=95=BD=20=EC=95=B1=EB=B0=94=20=ED=83=80=EC=9D=B4=ED=8B=80=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/View/booking/screen/booking_car_screen.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/View/booking/screen/booking_car_screen.dart b/lib/View/booking/screen/booking_car_screen.dart index 8144a8f..a54230f 100644 --- a/lib/View/booking/screen/booking_car_screen.dart +++ b/lib/View/booking/screen/booking_car_screen.dart @@ -54,7 +54,7 @@ class _BookingCarScreenState extends State { Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.white, - appBar: const SubAppBar(titleText: '장비 예약',), + appBar: const SubAppBar(titleText: '차량 예약',), body: renderBody(), bottomNavigationBar: PurpleBottomButton( title: '예약', From 4fabb63d57af2900200c25829f8ec538ab85edcd Mon Sep 17 00:00:00 2001 From: ryr0121 Date: Fri, 1 Dec 2023 18:33:12 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=EC=B0=A8=EB=9F=89=20=EC=98=88?= =?UTF-8?q?=EC=95=BD=20=EB=8B=AC=EB=A0=A5=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../booking/screen/booking_car_screen.dart | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/lib/View/booking/screen/booking_car_screen.dart b/lib/View/booking/screen/booking_car_screen.dart index a54230f..ed0e5f4 100644 --- a/lib/View/booking/screen/booking_car_screen.dart +++ b/lib/View/booking/screen/booking_car_screen.dart @@ -331,15 +331,21 @@ class _BookingCarScreenState extends State { } void changedDate(DateTime? start, DateTime? end) { - setState(() { - startDate = (start == null) ? null : DateTime(start.year, start.month, start.day); - endDate = (end == null) - ? DateTime(start!.year, start!.month, start!.day) - : DateTime(end.year, end.month, end.day); + if (start == null && end == null) { + setState(() { + startDate = null; + endDate = null; + }); - print('start -> $start'); - print('end -> $end'); - }); + } else { + + setState(() { + startDate = (start == null) ? null : DateTime(start.year, start.month, start.day); + endDate = (end == null) + ? DateTime(start!.year, start!.month, start!.day) + : DateTime(end.year, end.month, end.day); + }); + } } void changedStartDate(DateTime? time) {