-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WorldClockTab: Add time in other cities #3
base: master
Are you sure you want to change the base?
Conversation
7e4fd57
to
ecc4267
Compare
This is awesome, is it ready to merge? |
I've worked on this feature on a macos and linux machine and there are some things i'm not sure about:
|
Ideally, i'm looking to have settings save in a standard location, I believe that [HOME]/.config/ is pretty standard and we can work from there. As for file formats, really go with whatever you are comfortable with, i'd prefer JSON but I know writing to json in dart is a bit complex. |
ecc4267
to
0b606ef
Compare
Lets see if i can add that before merging this. |
36a2d73
to
43844de
Compare
This adds a button that pops up a window where you can select a city. After chosing the city the city is added to the WorldClockTab and the time in that spesific city is displayed.
43844de
to
8766545
Compare
I've added support for writing the selected cities timezones to disk and reading them on app start. |
It's standard on Linux but on Android (another target platform for some of these system apps), among other platforms, it's very much not. I'm finally about to dig into this, so let's see how far I get before I have to leave for work 😄 |
@bleonard252 That seems logical. I have no problem trying to implement this myself but i will need some directions on what kind of methods of storing configs i should use. I'm just thinking out loud here but would it make sense to have a dart package from dahliaOS for app configs purely for dahliaOS apps? |
The package is an idea, but doesn't exist yet. For now, I'd suggest using some database option such as either SharedPreferences or Hive |
Description
This adds a button that pops up a window where you can select a city.
After chosing the city the city is added to the WorldClockTab and the
time in that spesific city is displayed.
the selected cities are currently saved in memory thus reloading the app
will cause the clock to forget what you've selected.
I'm not sure how app configs are handled in this OS yet so i've left this one un-implemented.
Screenshots (if appropriate):
Type of change
Please tick the relevant option by putting an X inside the bracket
Checklist: