title: Flutter search item from ListView
body: <p>I'm trying to search item from ListView but I can't seem to find a way. What I want is when I type in the contact name from my contact list, then the specific contact appears on the page.</p>
  <p>Here is my search code:</p>
  <pre><code>Row(
                    children: [
                      Icon(
                        Icons.search,
                        color: Color(0xff99999B),
                        size: 20,
                      ),
                      Expanded(
                        child: TextField(
                          cursorColor: Colors.grey,
                          onChanged: (value) {
                            setState(() {
                              contactList = contactList.where((element) =&gt; element.contains(value)).toList();
                            });
                          },
                          decoration: InputDecoration(
                              hintText: 'Search contact...',
                              hintStyle: TextStyle(
                                  color: Color(0xff99999B),
                                  fontSize: 12
                              ...
  </code></pre>
  <p>And my ListView code:</p>
  <pre><code>Container(
                          child: ListView.builder(
                            itemCount: contactList.length,
                            itemBuilder:(BuildContext context,index)=&gt;
                                Column(
                                  children: [
                                     Container(
                                        padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
                                        child: Column(
                                              crossAxisAlignment: CrossAxisAlignment.start,
                                              children: [
                                                ConstrainedBox(
                                                  constraints: BoxConstraints(
                                                      maxWidth: 250
                                                  ),
                                                  child: Text(contactList[index].userName!,
                                                    ...
  </code></pre>
  <p>Is there any solutions?</p>