Skip to content

Commit 916eed6

Browse files
committed
경로 안보이는 문제 해결
경로 안보이는 문제 해결
1 parent e6a5937 commit 916eed6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/features/itinerary/screen.dart

+5-4
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class _ItineraryEditorState extends State<ItineraryEditor>
258258
length: itinerary!.dailyItineraryCubitList.length + 1,
259259
initialIndex: 0,
260260
)..addListener(() {
261-
tabControllerListener(itinerary);
261+
tabControllerListener(context.read<ItineraryCubit>());
262262
}),
263263
);
264264
} else {
@@ -272,7 +272,7 @@ class _ItineraryEditorState extends State<ItineraryEditor>
272272
length: itinerary.dailyItineraryCubitList.length + 1,
273273
initialIndex: 0,
274274
)..addListener(() {
275-
tabControllerListener(itinerary);
275+
tabControllerListener(context.read<ItineraryCubit>());
276276
}),
277277
);
278278
}
@@ -722,8 +722,9 @@ class _ItineraryEditorState extends State<ItineraryEditor>
722722
);
723723
}
724724

725-
void tabControllerListener(ItineraryData itinerary) {
725+
void tabControllerListener(ItineraryCubit itineraryCubit) {
726726
var tabController = _tabControllerCubit!.state.tabController;
727+
var itinerary = itineraryCubit.state;
727728
_refreshRoute(_globalGoogleMapCubit, itinerary, tabController.index);
728729
// setState(() {});
729730
}
@@ -1734,7 +1735,7 @@ class DailyItineraryPlaceItem extends StatelessWidget {
17341735
var timeFormat2 = DateFormat('h시간 m분');
17351736
var timeFormat3 = DateFormat('h시간');
17361737
var timeFormat4 = DateFormat('mm');
1737-
var timeFormat5 = DateFormat('hh:mm');
1738+
var timeFormat5 = DateFormat('HH:mm');
17381739
String timeFormatFunc1(DateTime dateTime) {
17391740
if (dateTime.hour == 0) {
17401741
return timeFormat1.format(dateTime);

lib/google_map_routes/google_map_routes.dart

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ Future<MovementData?> getGoogleMapRoutes(PlaceData start, PlaceData end,
5454
}),
5555
);
5656
if (response.statusCode == 200) {
57-
// print('response.body: ${response.body}');
5857
var data = jsonDecode(response.body);
5958
var legs = data['routes'][0]['legs'];
6059
var steps = legs[0]['steps'];

0 commit comments

Comments
 (0)