Closed ssshashank closed 2 years ago
I am also having this issue! Would be great to get this fix soon, may have to change plugins.
Should be fixed with #19 , released in version 1.0.7
The issue is still happening for me when the state is changed via change notifier and an item is removed.
@rahuldubey093 Could you provide a minimal reproducible example?
@rahuldubey093 Could you provide a minimal reproducible example?
For example, i have five counts page, and i selcted the third index. next i rebuild a the expanablePageView, and now i have one count page, it will be cause error
the error code is :
_heights[_currentPage] = currentPageHeight;
Should be fixed with #24, released in version 1.0.10
I still have this issue (plugin version: 1.0.14, flutter 3.0.1)
We have a carousel with multiple notification cards the user can read and delete afterwards. They might have a different height and this is the main reason we are using this plugin.
In general everything works great. However when the user first swipes through all the cards (e.g. from card 1 to card 3), then back to the first one and afterwards dismisses the card (this removes the notification from the array), we are seeing the following error:
`════════ Exception caught by widgets library ═══════════════════════════════════ The following RangeError was thrown building ExpandablePageView(dirty, state: _ExpandablePageViewState#6110c): RangeError (index): Invalid value: Only valid value is 0: 1
The following RangeError was thrown building ExpandablePageView(dirty, state: _ExpandablePageViewState#6110c): RangeError (index): Invalid value: Only valid value is 0: 1
The relevant error-causing widget was ExpandablePageView lib/…/notification_carousel/notification_carousel.dart:65 When the exception was thrown, this was the stack `
Hi @Panimaster Could you provide some small reproducible example so I can easily find what the issue is?
Hey @Limbou : i forked your project and adapted your example to reproduce the error: https://github.com/Panimaster/expandable_page_view
How to reproduce the error:
Hi @Panimaster, thank you for that great explanation. I believe I was able to pinpoint the problem and it should be fixed in 1.0.15
with #41. Closing this issue for now, if the problem persists please let me know.
Implementation:-
I am implementing anExpandable_Page_View
that helps achieve the dynamic height of the widget based on its children height. So I have taken a list and iterating that list to display theExpandable_Page_View
.Error:-
When I amremoving elements from last
in the list theExpandable_Page_View
is throwingRange Error
.