본문 바로가기
728x90

map4

mapIndexed list -> map widget을 만들어 줄 때 index가 필요하게 될 때는 ...List.genearted(length, Widget) 이런식으로 넣어줬었는데 mapIndex라는 method가 collection에서 제공 되는 걸 알게 되었다! 다음부터는 이걸 써야겠다!! 내가 위젯 넣을 때는 잘 안 쓰는 방법이지만 For 구문을 이용해서 넣어줄 수도 있다! for (int i = 0; i < 5; i++) SizedBox.shrink(), https://dev-yongsu.tistory.com/16 Flutter [.mapIndexed()] method Flutter를 사용해서 개발을 하다보면 Iterable 클래스의 .map() 메서드를 리스트의 항목을 매핑하는데 유용하게 사용한다. 그런데 .m.. 2023. 8. 10.
원하는 latlng 찾기 latitude, longitude https://www.findlatitudeandlongitude.com Find Latitude and Longitude Find latitude and longitude by clicking a map, entering zip code/address. Batch geocode locations. Convert latitude-longitude, GPS coordinates, decimal degrees, degrees mins secs... www.findlatitudeandlongitude.com 2023. 3. 25.
Map 에서 flutter dotdotdot 사용하기 맵에서 어떤 요소를 추가할 때 이런식으로 추가하면 된다. list에 요소 추가하는 건 흔한데 map에 추가 가능한 것도 메모해놓고 싶었음! 2023. 1. 24.
GPS 좌표 찍기 사이트 추천! 예를 들어 해당 지역이 한국인 지 확인해야하는 때가 있다, 그러면, 일단 한국에 해당하는 폴리곤을 그려서 내가 있는 GPS위치가 폴리곤 안에 있는지 확인해야한다. 대충 이렇게 한국을 그려봤다. 이 안에 좌표가 들어오면 한국인 것이다. 그것에 대한 코딩은 아래의 링크를 확인이 필요합니다. https://dev-caleb.tistory.com/330 지도에 해당 지점이 어떤 지역 안에 있는 지 판별하기 https://pub.dev/packages/maps_toolkit PolygonUtil.containsLocation - computes whether the given point lies inside the specified polygon. maps_toolkit | Dart Package Maps too.. 2023. 1. 21.
728x90