Skip to content

Conversation

@brokoli18
Copy link
Contributor

@brokoli18 brokoli18 commented Nov 8, 2025

Also fixed a circular dependency bug with background refresh.

Resolves #152

@kolaente kolaente changed the title Add the ability to complete tasks directly from the widget. feat: add the ability to complete tasks directly from the widget. Nov 9, 2025
@brokoli18
Copy link
Contributor Author

@kolaente Just FYI this MR will not resolve #152 as this will just let a user complete tasks (not add them). I am working on a separate change that will also let a user add tasks from the widgets (indirectly). Its almost ready to go

@brokoli18
Copy link
Contributor Author

@leschbenedikt @kolaente The above check is failing because now dart is saying that it wants to format 157 files? I dont think we want to touch so many files on this mr.

@kolaente
Copy link
Member

@brokoli18 it said only one was changed: lib/presentation/manager/task_page_controller.dart.

}

@Composable
private fun GlanceContent(context: Context, currentState: HomeWidgetGlanceState) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The size and position of the widget changes depending of the number of task.
I think this should always be the same.

Copy link
Contributor Author

@brokoli18 brokoli18 Dec 10, 2025

Choose a reason for hiding this comment

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

Can you elaborate on what you mean here. When the widget is first created its a 4x1 Rectangle. After the user resizes it it should stay the same size regardless of how many tasks there are.

Text("Today:")
}
items(todayTasks.sortedBy { it.dueDate }) { task ->
RenderRow(context, task, prefs, "HH:mm")
Copy link
Collaborator

Choose a reason for hiding this comment

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

The pattern shouldn't be hardcoded, the should depend on the locale.
You can just pick some of the predefined ones from flutter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have looked at the possible solutions here, but using something like DateTimeFormatter.ISO_LOCAL_DATE_TIME the date is either too big for the widget, or doesn't display the right components. In short the string fomatter is just much more flexible, is there an issue with me using it here?

Text("OverDue")
}
items(otherTasks.sortedBy { it.dueDate }) { task ->
RenderRow(context, task, prefs, "dd MMM HH:mm")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

@brokoli18
Copy link
Contributor Author

@leschbenedikt I made some changes/comments, can you have a look when you have a moment

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.

Quick add widget on homescreen

3 participants