dhimasdewanto / slide_popup_dialog

MIT License
23 stars 21 forks source link

RenderBox was not laid out: RenderPhysicalShape#0c124 #1

Open mwawrusch opened 5 years ago

mwawrusch commented 5 years ago

I receive the following error when embedding a more complex widget in the popup:

RenderBox was not laid out: RenderPhysicalShape#0c124
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1681 pos 12: 'hasSize'

This is one sample that fails with this error:

Widget build(BuildContext context) {
     return CustomScrollView(slivers: <Widget>[
          new SliverList(
              delegate: new SliverChildListDelegate(
[

   Text('trest'),
    Text('trest'),
     Text('trest'),
      Text('trest'),
]

              ))
        ]);
  }
dhimasdewanto commented 5 years ago

You need to specify the height of your widgets. You can use Container for example.

On Sat, Nov 2, 2019, 11:46 AM Martin Wawrusch notifications@github.com wrote:

I receive the following error when embedding a more complex widget in the popup:

RenderBox was not laid out: RenderPhysicalShape#0c124 'package:flutter/src/rendering/box.dart': Failed assertion: line 1681 pos 12: 'hasSize'

This is one sample that fails with this error:

Widget build(BuildContext context) { return CustomScrollView(slivers: [ new SliverList( delegate: new SliverChildListDelegate( [

Text('trest'), Text('trest'), Text('trest'), Text('trest'), ]

          ))
    ]);

}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dhimasdewanto/slide_popup_dialog/issues/1?email_source=notifications&email_token=AHIF6KXBCVP7K3NW2AJCWTTQRUA3BA5CNFSM4JICX622YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HWIYLIA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIF6KVPPMDLD5IWD2VVJPTQRUA3BANCNFSM4JICX62Q .

mwawrusch commented 4 years ago

How would I correctly go about this to place a scrollable list of content within the popup dialog? I tried a few variations but can't get it to work.

Also, as a feature request, it would be awesome to:

Thanks for the good work. Much appreciated

fannnu commented 4 years ago

Hi mwawrusch, I'm trying to fit a scrollable list of content just like you did. It shows bottombar overflow. It would be appreciated if you could share a solution, if you did found any