Skip to content

1.4.0: compact row actions and a progress bar for narrow layouts - #33

Merged
rickypid merged 2 commits into
insideapp-srl:mainfrom
a-nisi-insideapp:fix/compact-row-actions
Oct 24, 2026
Merged

rickypid merged 2 commits into
insideapp-srl:mainfrom
a-nisi-insideapp:fix/compact-row-actions

Conversation

@a-nisi-insideapp

Copy link
Copy Markdown
Contributor

What does it do?

Makes the activities list usable on narrow layouts and adds a progress indicator to the default cell:

  • compact cellHeight row actions, Gantt.activitiesListMinWidth, Gantt.collapseActionsBelowWidth (a "more" menu that uses the action tooltips as labels) and GanttTheme.listIndent;
  • GanttActivity.progress / progressColor: a line over a track along the bottom of the cell, inset like the title and measured on the whole activity, so it continues beyond the grid edge on a cut side;
  • white or black cell title with at least 4.5:1 contrast; resize edges that follow the cell color, use the left-right cursor and are hidden on a side cut by the visible range;
  • Gantt follows a new theme (didUpdateWidget), GanttTheme value equality, GanttController.setTheme(theme, {notify});
  • fix GanttController.removeAllFetchListener() / dispose() throwing a ConcurrentModificationError when a fetch listener was still registered.

Version bumped to 1.4.0; see CHANGELOG 1.4.0 for the details. README updated with the new Gantt properties and GanttActivity.progress.

Why is it needed?

On tablets the 40/48px action buttons left almost no room for the titles, which were cut to one or two characters, and the status icons ended up under the edit button. fix #32

How to test it?

Run the example: some activities now have a progress line (0%, 30%, 60%, above 100%, and a long task cut by the visible range), the list keeps a minimum width, and narrowing the window groups the actions of "Main Task" in the "more" menu. Switching the app theme updates the chart. flutter test covers the color helpers (test/color_test.dart), the progress bar and resize edges (test/cell_progress_and_edges_test.dart) and the controller dispose (test/gantt_controller_fetch_test.dart).

Related issues/PRs

fix #32

Ready to be merged.

🤖 Generated with Claude Code

a-nisi-insideapp and others added 2 commits October 23, 2026 10:51
Make the activities list usable on tablets (compact actions, minimum
width, "more" menu) and add a progress line to the cells, with
readable titles and resize edges that follow the cell color.
See CHANGELOG 1.4.0 for the details.
Add test/cell_progress_and_edges_test.dart (resize edges on cut sides,
progress track and line inset and measured on the whole activity, the
"more" menu tooltip assert) and two GanttController tests for
removeAllFetchListener and dispose with a mounted Gantt. Show progress
and the narrow layout options in the example.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
rickypid added a commit that referenced this pull request Oct 24, 2026
…nd CI alignment (#34)

Includes #33 (fix #32).

Co-authored-by: a-nisi-insideapp <a.nisi@insideapp.it>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rickypid
rickypid merged commit 61c4285 into insideapp-srl:main Oct 24, 2026
1 check passed
@rickypid

Copy link
Copy Markdown
Contributor

Thanks @a-nisi-insideapp! These changes shipped together with #34 in a single 1.4.0 release: both commits were merged with their original authorship and you're credited as co-author in the CHANGELOG and in the merge commit.

As agreed, Gantt.activitiesListMinWidth was replaced by GanttActivitiesListWidth.minWidth (Gantt.activitiesListWidth): without a stored width the column starts from its flex share bounded by minWidth, covering the same narrow-layout case, and it can also be resized by dragging its edge. collapseActionsBelowWidth is unchanged and now also reacts to the resized column. The example app was updated accordingly.

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.

Activities list: row actions leave too little room for the title on narrow layouts

2 participants