Skip to content

Re: Added some features (mainly Android)#50

Merged
hatch01 merged 3 commits intoonyx-lyon1:devfrom
TimEtOff:dev
Oct 18, 2025
Merged

Re: Added some features (mainly Android)#50
hatch01 merged 3 commits intoonyx-lyon1:devfrom
TimEtOff:dev

Conversation

@TimEtOff
Copy link
Copy Markdown

Agenda Config Page:

On the Agenda Config Page, made the back button (and native back button/gesture on Android) actually go back one level in the files/agendas structure instead of closing the config page.
The page will still close if its the last level.
I couldn't test it on iOS nor Linux, but I don't think it can cause any problem, except just not working with iOS back gesture.

Preview

Config page demo gif

Homescreen widget

Added homescreen widget compatibility for the agenda with the HomeWidget flutter plugin.

  • Currently only available on Android because I couln't find a Mac or setup a VM for Xcode, but once I can I'll add it to iOS too.
  • Minimum size is 2x2 on Android grid, resizable
  • Widget data is refreshed everytime the agenda in-app is loaded, and last update time is displayed on the widget
  • Widget changes based on system language (en/fr translations), and system theme (colors stripped from the app base color themes, but not dirrectly from the dart files as its on Android native side)
  • Tried to sync widget theme with in-app theme but couldn't make it work
  • Displays the name of the event, start and end time, and location
  • Doesn't show the already finished events
  • Doesn't take into account disabled days set in app settings

Preview (light theme)

Widget small (light) Widget medium (light) Widget large (light)

Preview (night/dark theme)

Widget small (night/dark) Widget medium (night/dark) Widget large (night/dark)

Copy link
Copy Markdown
Member

@hatch01 hatch01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first review mainly focused on the dart side.
I still want to improve the serializer, which is probably possible to completely drop.
Will look at the Kotlin part later.

@hatch01
Copy link
Copy Markdown
Member

hatch01 commented Oct 16, 2025

Just FYI, I force-pushed to split your commit in a more atomic way.
Don't forget to git pull --rebase

TimEtOff added a commit to TimEtOff/onyx that referenced this pull request Oct 18, 2025
@TimEtOff
Copy link
Copy Markdown
Author

Implemented your method (I agree, it's better this way), but tweaked a few things after tests and added a Res variable to choose if we want to show empty days that are not disabled, could be a user setting for later.

I'd like to note that I got a working macOS VM so I'll probably make a new PR for the iOS widget in the future (might add user settings and other small features at the same time).

Copy link
Copy Markdown
Member

@hatch01 hatch01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll rebase and merge!

@hatch01 hatch01 merged commit 8e4f406 into onyx-lyon1:dev Oct 18, 2025
5 checks passed
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.

2 participants