dronetag / drone-scanner

Multi-platform mobile application for receiving Remote ID information broadcasted by nearby UAVs, compatible with ASTM F3411, ASD-STAN prEN 4709-002 standards
142 stars 28 forks source link

chore: clean up packages, replace osm plugin #67

Closed matejglejtek closed 8 months ago

matejglejtek commented 9 months ago

In this PR I originally wanted to solve DT-2777 by updating osm_flutter_plugin and permission_handler package versions to sync with other repos and to be able to bump flutter-opendroneid.

After dealing with few conflicts and finding out that the newest osm_flutter_plugin is still not compatible, I decided to remove osm_flutter_plugin package and use own client to Nominatim API, similar to what we have in the app. So to sum up, I removed osm_flutter_plugin and unused flogs and bumped permission_handler, flutter-opendroneid and sprintf.

I created NominatimGeocodingRestClient that returns list of PlaceDetails for given query. I also changed the UI of location search a bit - I added button to clear current query and added progress indicator. Submit on keyboard will select first option from results if available.

https://github.com/dronetag/drone-scanner/assets/15686037/68d1cdfe-e228-405b-8b88-f1c6b69807ad

matejglejtek commented 8 months ago

Rebased, resolved the crash when using trash icon, implemented @albertmoravec's suggestion.