flutter / flutter_clock

BSD 3-Clause "New" or "Revised" License
543 stars 328 forks source link

What is the location that we get #9

Closed raddatzk closed 5 years ago

raddatzk commented 5 years ago

I would like to use the current location, but the the location provided in the ClockModel says "Mountain View, CA". Am I allowed to transform the location to coordinates via the Play Services?

wheel1992 commented 5 years ago

Thought that the official website has indicated the following requirements

===== ...

Design and data notes: The ClockModel API with mock data is provided to you. Using this API is optional, but it provides system information such as the brightness mode, weather, and time format.

...

raddatzk commented 5 years ago

Yes I already read this, but I hoped it will be okay to call the Play Services, as this is not some ridiculous-api:1.7

maryx commented 5 years ago

The location is a String. Feel free to go into model.dart and hardcode it to something else while you develop (but revert and submit the original model with your project).

Because it is a String and doesn't have validation, feel free to make your location a String coordinate (e.g. '(12.345678, -12.3456789)'). Make a note of that in your submission (maybe add some example strings to try) if the UI behaves differently based on the location String.

You may not use Play Services.