Skip to content

Add support for searching within the log details view#9712

Open
kenzieschmoll wants to merge 1 commit intoflutter:masterfrom
kenzieschmoll:logging-search
Open

Add support for searching within the log details view#9712
kenzieschmoll wants to merge 1 commit intoflutter:masterfrom
kenzieschmoll:logging-search

Conversation

@kenzieschmoll
Copy link
Member

Adds the ability to search in the log details view.

Screenshot 2026-03-13 at 4 20 59 PM

This PR only adds this for the raw text details view since adding search functionality to the expandable JSON viewer would require a more complicated refactor of that widget, and the benefit does not justify the cost.

Fixes #9559

@kenzieschmoll kenzieschmoll requested a review from a team as a code owner March 13, 2026 23:34
@kenzieschmoll kenzieschmoll requested review from elliette and srawlins and removed request for a team March 13, 2026 23:34
builder: (context, values, _) {
final theme = Theme.of(context);

final matches = values[0] as List<LogDetailsMatch>;
Copy link
Member

Choose a reason for hiding this comment

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

Consider pulling some of this into a shared helper that can be used here and in the codeview highlighter - looks like there is some shared logic here but not sure how much work it would be to refactor

Copy link
Contributor

@srawlins srawlins left a comment

Choose a reason for hiding this comment

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

Everything looks good to me!

## Logging updates

TODO: Remove this section if there are not any updates.
- Added support for searching within the log details view (raw text mode). [TODO](https://github.com/flutter/devtools/pull/TODO)
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this link? It doesn't seem to work.

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.

[User reported] Ability to search within the details view of a single log

3 participants