Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to Wrap Column ERROR #4

Closed
lyhourchhen opened this issue Oct 16, 2020 · 1 comment
Closed

Trying to Wrap Column ERROR #4

lyhourchhen opened this issue Oct 16, 2020 · 1 comment

Comments

@lyhourchhen
Copy link

Your package is pretty awesome thanks for making this happen, but when I am trying to wrap with Column suddenly it is an error like this:

Code Sample

Column(
            children: [
              Container(
                child: PagedListView<int, dynamic>(
                  pagingController: _pagingController,
                  builderDelegate: PagedChildBuilderDelegate<dynamic>(
                      itemBuilder: (context, item, index) {
                    return CarListItemDefaultView(item);
                    return Container(
                      height: 200,
                      child: Text(item.name),
                    );
                  }),
                ),
              )
            ],
          ),

Error logs

════════ Exception caught by rendering library ═════════════════════════════════════════════════════
RenderBox was not laid out: RenderFlex#c7c17 relayoutBoundary=up2 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1785 pos 12: 'hasSize'

@lyhourchhen
Copy link
Author

lyhourchhen commented Oct 16, 2020

I am gonna close this issue and comment my solution here incase people need, resoved by just add Expanded wrap it.

Column(
            children: [
              Expanded(
              child: Container(
                child: PagedListView<int, dynamic>(
                  pagingController: _pagingController,
                  builderDelegate: PagedChildBuilderDelegate<dynamic>(
                      itemBuilder: (context, item, index) {
                    return CarListItemDefaultView(item);
                    return Container(
                      height: 200,
                      child: Text(item.name),
                    );
                  }),
                ),
              ))
            ],
          ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant