Transcript for:
Flutter: Autocomplete Widget

[Music] you know how no one likes to type stuff so it's great when form inputs can finish your sentences this is a common ui pattern you could build using a layout builder a stack some list tiles below as the user types and wait a minute this is flutter and there's a widget for that enter the auto complete widget and off the shelf well autocomplete experience for your users to get started swap out any text input widget with the autocomplete widget and supply in options builder that options builder is a method that takes the latest text editing value property from the text input and returns an iterable of matches these matches can be strings or custom types which you turn into strings with the display string for option parameter to control how these displayed matches look use the options view builder callback and to know when your users tap on one of the matches supply an unselected function and lastly if your original text input was stylish and the one offered by autocomplete is a bore by comparison use the field view builder parameter to maintain full control over your input for more info on flutter and all the other widgets head to flutter.dev