위치 선택 지도를 구글 지도로 · Figma 구성 맞춤
This commit is contained in:
@@ -46,7 +46,6 @@ class _QuestCreateScreenState extends State<QuestCreateScreen> {
|
||||
QuestCatalog? _catalog;
|
||||
QuestCategory? _category;
|
||||
QuestActivity? _activity;
|
||||
List<QuestPlace> _places = const [];
|
||||
QuestPlace? _place;
|
||||
DateTime? _endDate;
|
||||
QuestLink? _link;
|
||||
@@ -442,14 +441,9 @@ class _QuestCreateScreenState extends State<QuestCreateScreen> {
|
||||
final _extraVerify = <String>{};
|
||||
|
||||
Future<void> _pickPlace() async {
|
||||
if (_places.isEmpty) {
|
||||
final places = await widget.repository.places();
|
||||
if (!mounted) return;
|
||||
_places = places;
|
||||
}
|
||||
final picked = await Navigator.of(context, rootNavigator: true).push<QuestPlace>(
|
||||
// 명세 `523:18207` — 선택 완료 시 *하단 move out 페이지 종료 후 이전 화면 이동*.
|
||||
SheetRoute(builder: (_) => PlacePickerScreen(places: _places)),
|
||||
SheetRoute(builder: (_) => const PlacePickerScreen()),
|
||||
);
|
||||
if (picked == null || !mounted) return;
|
||||
setState(() => _place = picked);
|
||||
|
||||
Reference in New Issue
Block a user