find_in_page library

Ctrl+F for Flutter: highlight matches across your widgets, navigate between them, and scroll the active match into view.

Wrap a page in FindInPageScope, replace searchable Text widgets with FindableText, and press Ctrl+F (Cmd+F on macOS).

Classes

ExcludeFromFind
Keeps everything under child out of find-in-page.
FindableListView
A ListView.builder whose entire backing list is searchable, not just the items currently built.
FindableRecord
A FindableSource whose text is supplied directly instead of read from a live widget, and which has no findableContext.
FindableSource
Implemented by widget states whose text participates in find-in-page.
FindableText
A Text replacement whose content participates in find-in-page.
FindBar
A compact Material find bar: query field, match counter, and previous/next/close buttons. Enter jumps to the next match; Escape invokes onClose.
FindInPageController
Drives a find-in-page session: holds the query, computes matches across all registered sources, and tracks the active match.
FindInPageScope
FindMatch
A single occurrence of the query inside a registered source.
ParagraphSource
Text drawn by a Text, Text.rich, or any widget that builds one, including titles supplied to widgets you do not own such as AppBar, ListTile and DataTable.
ReadOnlyEditableSource
Text drawn by a read-only editable, which in practice means SelectableText.
RenderedTextSource
A FindableSource for text the application never wrapped.

Typedefs

FindableListItemBuilder = Widget Function(BuildContext context, int index, List<FindMatch> matches, int? activeMatchIndex)
Builds one item of a FindableListView.