ianldgs / material_search

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

add optional args for autofocus and focusNode #42

Open stevenspiel opened 5 years ago

stevenspiel commented 5 years ago

Adds configuration to control when the search field focuses. This is particularly helpful if the search is hidden and revealed through an animation.

autofocus defaults to true, so there the default functionality does not change. focusNode defaults to null, which is fine. TextField inline documentation says, "If null, this widget will create its own [FocusNode]."