title: How to display a list of buttons into a group instead of list view? flutter
body: <p>I want to display a dynamic list inside a wrap widget. I want to display it like this.i tried group_button package but it doesn't work on list. I tried to duplicate the list into list but that doesn't help me in disappearing the list by using list.clear() when pressed.</p>
  <p><a href="https://i.stack.imgur.com/j5KfB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j5KfB.jpg" alt="enter image description here" /></a></p>
  <pre><code>Wrap(
    spacing: 8.0, // gap between adjacent chips
    runSpacing: 4.0, // gap between lines
    children: &lt;Widget&gt;[
      ElevatedButton(
                            child: Text('hi'),
                            onPressed: () =&gt; {
                                
                              }
                          ),
       ElevatedButton(
                            child: Text('hello'),
                            onPressed: () =&gt; {
                                
                              }
                          ),
       ElevatedButton(
                            child: Text('how are you?'),
                            onPressed: () =&gt; {
                                
                              }
                          ),
       ElevatedButton(
                            child: Text('comeon'),
                            onPressed: () =&gt; {
                                
                              }
                          ),
        ElevatedButton(
                            child: Text('weather'),
                            onPressed: () =&gt; {
                                
                              }
                          ),
        ElevatedButton(
                            child: Text('welcome'),
                            onPressed: () =&gt; {
                                
                              }
                          ),
        ElevatedButton(
                            child: Text('thank you'),
                            onPressed: () =&gt; {
                                
                              }
                          ),
      
    ],
  ), 
  </code></pre>
  <p>But my list is dynamic and wrap doesn't work on listview</p>
  <p><a href="https://i.stack.imgur.com/Y7nYJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y7nYJ.jpg" alt="enter image description here" /></a></p>
  <pre><code>Wrap(
    spacing: 8.0, // gap between adjacent chips
    runSpacing: 4.0, // gap between lines
    children: &lt;Widget&gt;[
      ListView.builder(
                        itemCount: label.length,
                       shrinkWrap:true,
                        itemBuilder: (context, j) {
                          return ElevatedButton(
                            child: Text(label[j]),
                            onPressed: () =&gt; {
                                
                              }
                          );
                          } 
                          )
    ],
  ),
   
  </code></pre>
  <p>the label is List. what can I do?/</p>