코딩강의/favorite_places(플러터-유데미)
239. Adding a "Place Details" Screen (Challenge Solution 6/6)
김마드
2023. 11. 16. 20:44
1. place detail 화면을 추가하자.
여기까지는 이전에 배웠던 기본 방법들로 다 구현했다.
- place_detail.dart
- places_list.dart
1) onTap: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (ctx) => PlaceDetailScreen(place: places[index]),
),
);
},
--> 탭하면 place detail 화면으로 이동 추가