Skip to content

Commit

Permalink
Merge pull request #50 from PLADI-ALM/feat/PDA-16-booking-resource
Browse files Browse the repository at this point in the history
[PDA-18] fix: 차량 예약 앱바 타이틀 변경
  • Loading branch information
ryr0121 authored Dec 1, 2023
2 parents 149fbba + 4fabb63 commit 34988f3
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions lib/View/booking/screen/booking_car_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class _BookingCarScreenState extends State<BookingCarScreen> {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
appBar: const SubAppBar(titleText: '장비 예약',),
appBar: const SubAppBar(titleText: '차량 예약',),
body: renderBody(),
bottomNavigationBar: PurpleBottomButton(
title: '예약',
Expand Down Expand Up @@ -331,15 +331,21 @@ class _BookingCarScreenState extends State<BookingCarScreen> {
}

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) {
Expand Down

0 comments on commit 34988f3

Please sign in to comment.