SwEnt-Group13 / Unio

The world’s largest campus life platform.
3 stars 1 forks source link

Link EventDetails to the Map Screen #186

Closed armouldr closed 1 week ago

armouldr commented 1 week ago

Link the map button in EventDetails to the map screen, such that the map is centered to the event in question.

For that I need to : -> add a centerLocation stateflow in MapViewModel -> add a setCenterLocation method in MapViewModel -> modify the map screen accordingly

How it works: in Home: simply navigate to Map without specifying any location, this will focus on userLocation in EventDetails : use setCenterLocation method to

Zafouche commented 1 week ago

@armouldr, I invite you to change intialCentered from var initialCentered by remember { mutableStateOf(false) } to var initialCentered = false before merging. This fixes the undesired behavior I described above.

Thank you 🙏

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
74.5% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud