Skip to content

Web Browser Native Search #77217

@sidrao2006

Description

@sidrao2006

Use case

Add support for browser search

Proposal

  1. Let browser handle the search

  2. Provide a widget specifically to support static text features

  3. Let html handle semantics and rendering for such elements

  4. Use the Intersection Observer API (https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) to detect searches. Also add style change listeners to the text, such that it won't be triggered when the framework changes the style of the text but will be triggered when the browser changes the text style (since the browser changes the text style to highlight the searched words)

  5. Once the framework knows that the browser is navigating to a certain piece of text, render the relevant elements/widgets which are supposed to be in the surroundings of the text

  6. The static text rendering widget should be low level and abstracted under the Text widget such that static text mide will be enabled automatically for texts that do not have dynamic dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.platform-webWeb applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions