title: How to have a list view whose children will wrap in Flutter
body: <p>What i need</p>
  <p><a href="https://i.stack.imgur.com/Od5lV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Od5lV.png" alt="Image" /></a></p>
  <p>How it is now</p>
  <p><a href="https://i.stack.imgur.com/lYvs1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lYvs1.png" alt="enter image description here" /></a></p>
  <p>Basically, i need to achieve this. i thought of using a grid view but grid view renders elements to a specified aspect ratio which is not i need in my case. I also tried a list view with a horizontal scroll but of course it would and infinite horizontal scroll. I would appreciate any pointers on how to achieve it.</p>
  <pre><code>ListView.builder(
    itemCount: categories.length,
    scrollDirection: Axis.horizontal,
    shrinkWrap: true,
    itemBuilder: (context,index){
        return Container(
             margin: EdgeInsets.all(3),
             padding: EdgeInsets.all(5),
             decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(4),
                  border: Border.all(color: AppColors.darkOrange)
                  ),
             child: Text(categories[index],style: AppTextStyles.smallTextStyle,)
                   );
             }
        ),
  </code></pre>