QuantumPhysique / trale

trale – a simple body weight diary app respecting your privacy
GNU Affero General Public License v3.0
61 stars 8 forks source link

Use first day of the week from system settings instead of locale #53

Open alabotski opened 3 months ago

alabotski commented 3 months ago

In the system settings of my phone, it is set that the first day of the week is Monday Accordingly, all applications are based on this In this application, the first day in the calendar is Sunday

Screenshot_20240315-070749

braniii commented 3 months ago

This is annoying :/ I guess the reason is that you are using the English localization which sets Sunday as start of the week, see this issue https://github.com/flutter/flutter/issues/30051

There is a package which allows to get the users setting. https://pub.dev/packages/locale_plus But I guess it should be sufficient to set the correct locale, so, e.g. en_GB instead of en.