ianldgs / material_search

https://pub.dartlang.org/packages/material_search
MIT License
75 stars 39 forks source link

How can i send searched value/criteria to result view ? #35

Open jagdishjadeja opened 6 years ago

jagdishjadeja commented 6 years ago

Basically i want to search a word in string and then navigate to new screen and highlight text that is searched on searchScreen. I know how to highlight a string but dont know how to send searched string to new screen.

ianldgs commented 6 years ago

There is currently no way without a hack. It would require the implementation of a second parameter for the onSelect method. Like: onSelect: (dynamic value, String criteria) { ... }.