Skip to content

Support searching and/or filtering previews and preview groups #175663

Closed

Description

@bkonyi

It should be possible to search for or filter previews from within the preview environment based on:

  • Group name
  • Preview name
  • Containing script
  • Containing package

Activity

  1. added
    P2Important issues not at the top of the work list
    team-toolOwned by Flutter Tool team
    triaged-toolTriaged by Flutter Tool team
    a: widget previewsIssues related to the Widget Previewer tooling
    on Sep 19, 2025
  2. kiatitano commented on Sep 21, 2025

    @kiatitano

    Agreed.
    Adding search/filter options in the preview environment for group name, preview name, containing script, and containing package would make it much faster to navigate large preview sets without manually scrolling.
    This would improve developer productivity and align with how IDEs filter symbols or files.

  3. NamanGoyalK commented on Mar 23, 2026

    @NamanGoyalK
    Contributor

    Hi @bkonyi, I've gone ahead and opened a PR for this over at #184023!

    I added a persistent search bar to the controls row and wired up a filter toggle menu for the group, name, script, and package constraints. The state is all synced cleanly via the WidgetPreviewScaffoldController.

    Quick question regarding the CI bots requesting tests: I held off on including tests in this initial commit because I noticed there were no existing UI/widget tests for this specific scaffold template. I wanted to avoid accidentally breaking the CLI test suite with flutter precache dependencies or environment setup issues.

    What is the team's preferred approach for testing these generated flutter_tools templates? I'm more than happy to add pure-Dart unit tests for the controller's filtering logic, or UI tests if there is an established pattern you'd like me to follow. Just let me know what works best!

  4. added a commit that references this issue on Apr 8, 2026
    113565b
  5. added a commit that references this issue on Apr 15, 2026
    810b89a
  6. github-actions commented on Apr 22, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: widget previewsIssues related to the Widget Previewer toolingteam-toolOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions