0
I am trying to generate text like there in text("500g oats") but I want to generate without that scroll. There is some widget that can do this?
import 'package:flutter/material.dart';
class BoxIngredientes extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
Container(
height: 100,
child: ListView.builder(
padding: EdgeInsets.symmetric(horizontal: 15),
itemCount: 3,
itemBuilder: (BuildContext context, int index) {
return Container(
margin: EdgeInsets.only(
top: 5,
bottom: 5,
),
child: Row(
children: <Widget>[
Icon(
Icons.supervised_user_circle, // trocar esse icon depois
size: 22,
),
Container(
margin: EdgeInsets.only(
left: 10,
),
child: Text("500g de aveia"),
)
],
),
);
},
),
),
],
);
}
}
that’s not quite what I was thinking, because it needs to be fixed, which I need to have a dynamic height because I don’t know how many items will appear
– William Gravina
@Williamgravina if you use the
shrinkWrap: true
together, satisfies your use case?– Rafael Tavares
thank you from heart <3
– William Gravina