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

type 'RenderSliverList' is not a subtype of type 'RenderBox' in type cast #42

Closed
yys730 opened this issue Jul 30, 2021 · 2 comments
Closed

Comments

@yys730
Copy link

yys730 commented Jul 30, 2021

When the exception was thrown, this was the stack:
#0 _PopoverItemState._configure (package:popover/src/popover_item.dart:86:51)
#1 _PopoverItemState.build. (package:popover/src/popover_item.dart:55:9)
#2 _LayoutBuilderElement._layout. (package:flutter/src/widgets/layout_builder.dart:121:31)
#3 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2535:19)
#4 _LayoutBuilderElement._layout (package:flutter/src/widgets/layout_builder.dart:118:12)

I called it on e button in a list item like:
IconButton(
splashRadius: 24,
icon: Image.asset(
'assets/images/icon_more.png',
width: 20,
),
onPressed: () {
showPopover(
context: context,
transitionDuration: const Duration(milliseconds: 150),
bodyBuilder: (context) => const ListItems(),
onPop: () => print('Popover was popped!'),
direction: PopoverDirection.top,
width: 200,
height: 400,
arrowHeight: 15,
arrowWidth: 30,
);
},
),

@minikin
Copy link
Owner

minikin commented Aug 10, 2021

@yys730 thanks for the report. Unfortunately, the provided information is not enough to fully understand the issue.
Would you be willing to showcase your problem here, pls ?

@minikin
Copy link
Owner

minikin commented Sep 1, 2021

@yys730 Closing it for now. Feel free to reopen it if this issue is still important.

@minikin minikin closed this as completed Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants