Home > Enterprise >  Vertical viewport was given unbounded height flutter/dart
Vertical viewport was given unbounded height flutter/dart

Time:01-15

this is my code:

 @override
 Widget build(BuildContext context) {
    return ListView(children: [
       Card(
          child: Row(
             children: [
                 ListTile(
                     title: Text(publicacion.title),
                    subtitle: Text(publicacion.body),
                 )
             ],
          )),
     ]);
  }

Surely it is some overflow, but I couldn't fix it, I can't find the way .. I tried to implement ListView.builder, but I wouldn't be knowing where to fit it

CodePudding user response:

Try to add your Inside Row widgets wrap it with Expanded or Flexible refer my answer image

CodePudding user response:

The Row widget is creating this problem, just remove Row Widget and it should work fine.

@override
  Widget build(BuildContext context) {
    return ListView(children: [
      Card(
          child: ListTile(
            title: Text(publicacion.title),
            subtitle: Text(publicacion.body),
          )),
    ]);
  }
  •  Tags:  
  • Related