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

valueStyleBuilder enhancements #28

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

klondikedragon
Copy link

For your consideration:

Enhance valueStyleBuilder for more complex use cases:

  • BREAKING: Take node as additional argument (build logic in callbacks based off the full tree, not just the immediate value)
  • style in PropertyOverrides is now optional (if not specified, it will default to what is specified in the theme, same as before)
  • PropertyOverrides can optionally specify onLongPress and a mouse cursor

Updating version to 0.3.0 since this has breaking changes. Took opportunity to bump dependencies again so that the example could compile cleanly on windows desktop.

This builds off the https://github.com/rows/json_data_explorer/tree/chore/bump-dependencies branch which was never merged. Ideally that would get merged and published as 0.2.0, then this would get discussed/finalized/merged and published as 0.3.0.

bernardobelchior and others added 8 commits June 27, 2022 19:09
* Take node as additional argument
* Return value PropertyOverrides can optionally take `onLongPress` and
  `cursor`, and `style` is now optional
The search term is a regex, but highlighting assumed simple substring
matching. This is now fixed.
New theme property highlightOnlyRegExpGroups that when true will cause
only the matching groups of the search term regexp to be highlighted,
rather than the whole expression.

This is only an approximation right now, since dart regexp does not give
the position of each matching group.

Defaults to old behavior.
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