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

Need help in CustomBoxy with CustomScrollView #1

Closed
RaviKavaiya opened this issue Aug 1, 2020 · 3 comments
Closed

Need help in CustomBoxy with CustomScrollView #1

RaviKavaiya opened this issue Aug 1, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@RaviKavaiya
Copy link

Hi @PixelToast 👋

Thanks for this great package.
I am stuck at a place and need some help. Actually, I was experimenting with CustomBoxy.

The thing is, the child of my CustomBoxy is a CustomScrollView itself (To be clear, I am trying to show this: https://pub.dev/packages/implicitly_animated_reorderable_list).

First, let me show code:

class MyDelegate extends BoxyDelegate {
  @override
  layout() {
    final list = getChild(#list);

    final listSize = list.layout(constraints.copyWith(
      maxHeight: 250,
    ));

    list.position(Offset.zero);

    return Size(listSize.width, listSize.height);
  }
}

///
/// Somewhere...
///
return CustomBoxy(
  delegate: MyDelegate(),
  children: [
    LayoutId(
      id: #list,
      child: ImplicitlyAnimatedReorderableList<String>(
        // ... ... ...
      ),
    ),
  ],
);

The error I get:

══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
'package:flutter/src/widgets/framework.dart': Failed assertion: line 2598 pos 12: '!_debugBuilding':
is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md
The relevant error-causing widget was:
  ImplicitlyAnimatedReorderableList<String>

What I wanted to do?

I wanted to achieve a similar effect of ProductTile example that you have provided where this list would be shown at top with a FAB at bottom.

I am pretty new to this. If this can't be done using CustomBoxy, what I should I try to do??

Thanks...

@pingbird
Copy link
Owner

pingbird commented Aug 1, 2020

This is indeed a bug in Boxy, thank you for reporting it!

@pingbird
Copy link
Owner

pingbird commented Aug 2, 2020

Fixed in v1.2.0, again thank you @RaviKavaiya

@pingbird pingbird closed this as completed Aug 2, 2020
@RaviKavaiya
Copy link
Author

@PixelToast That was a REALLY REALLY quick fix. It worked!! Thank you so much...:thumbsup:

@pingbird pingbird added the bug Something isn't working label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants