Skip to content

Commit 590a5a6

Browse files
Deleted controller declaration in TypeAheadField
Deleted the controller declaration in the type ahead field, this way the field has the initial value shown.
1 parent 0bfdebb commit 590a5a6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

example/lib/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ class MyHomePageState extends State<MyHomePage> {
103103
itemBuilder: (context, country) {
104104
return ListTile(title: Text(country));
105105
},
106-
controller: TextEditingController(text: ''),
107106
initialValue: 'Uganda',
108107
suggestionsCallback: (query) {
109108
if (query.isNotEmpty) {

0 commit comments

Comments
 (0)