Skip to content
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

Improve time interval pickers #282

Draft
wants to merge 66 commits into
base: null_safety
Choose a base branch
from
Draft

Conversation

IoanaAlexandru
Copy link
Member

When migrating to Flutter 2 (#195), I made a list of packages we need to replace with null safe equivalents. Among these was interval_time_picker, which I thought we were using in the event time picker.

Turns out, we weren't actually using it, but since I had already started, I added functionality to open a duration picker when tapping the time interval duration on the add event page:

Screenshot 2021-09-19 at 23 42 08

Screenshot 2021-09-19 at 23 43 21

Now initially the colour didn't fit with our app's colour, so I fiddled around with colour schemes to fix it (and I also noticed the time picker colours didn't match either; now they do).

Screenshot 2021-09-19 at 23 45 01

The base branch for this is null_safety_fixes, so this should only be merged once #280 is merged.

IoanaAlexandru and others added 30 commits July 16, 2021 21:24
* Prevent use of S.of(context).

* Add test code.

* Fix dangerfile.

* Check only dart files.

* Revert "Add test code."

This reverts commit bd975da

* Move remote_config import back
* Added myself to contributers

* Added myself to contributers

* Added myself to contributers

* Added myself to contributers

* Added myself to contributers

* Added myself to contributers(+ Ș/ț)

Co-authored-by: stafy2912 <stafy2912@gmail.com>
…/acs-upb-mobile into andreew/update_contributors
* Sort people by last name.

* Bump build number.

Co-authored-by: Andrei-Constantin Mirciu <38398944+andreicmirciu@users.noreply.github.com>
* update_contributors

* Update pubspec.lock

* Update README.md
* Allow unsafe traffic from aii.pub.ro.

* Only allow HTTP fo aii.pub.ro.

* Fix some whitespace.

* Bump version.

* Allow HTTP on iOS as well.

* Indent Info.plist using tabs.

* Missed a tab.
* Remove bottom blue line in tab bar.

* Change SelectableFormField to use Chips.

* Improve Chip theme.

* Make dividers more consistent.

Couldn't find the exact setting but this looks decent.

* Add custom theme for dark mode.

* First attempt at fixing relevance picker.

* Fix logic for relevance picker.

* Select "Anyone" when no custom node is selected.

* Call relevancePicker.onChanged whenever it changes.

* Disable public filter options if user doesn't have permission.

* Fix ChoiceChip theme.

* Make RelevancePicker a FormField everywhere.

* Reuse ChipFormField in RelevanceFormField.

* Move filterIconColor to resources/theme.dart.

* Remove some duplicate code.

* Remove S.of(context).

* Fix default relevance in picker.

* Use chips on filter page.

This also fixes #5.

* Use chips in FAQ page.

* Fix tests.

* Make flutter version in workflows more specific.

Workflows now fail on GH but work locally, so I think it's because the
1.24.x version somehow gets matched to 2.3.0-24.1.pre-beta instead of
1.24.0-10.2.pre.

* Revert workflow changes.

No longer seems to be necessary and the previous version didn't work well anyway.

* Prep for release.

* Bump version and update changelog.

* Add comma for formatting.

Co-authored-by: Andrei-Constantin Mirciu <38398944+andreicmirciu@users.noreply.github.com>
Solved warnings
Updated related packages
Solved warnings
Updated related packages
(in timetable's model classes)
bogpie and others added 30 commits August 26, 2021 22:58
Created event provider function (getEventsIntersecting), currently from already existing methods.

Made necessary conversions to UTC time zone.
Events are now preloaded including previous and next page (a page is a week).

Fixed minor warnings
To be improved, since I believe I also convert already-UTC DateTimes.
Fixed overflow on text from all-day events

Refactoring
This is done by updating isUtc property for events without making hour conversions; those would shift the hour from midnight to ~9PM previous. day.
However, it turned out that, while converting to Firebase Timestamp, I had to disable isUtc property to avoid an off-by-two-hours error (see toNonUtcForced() )
- RemoteConfig is not supported on web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants