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

LateInitializationError: Field '_selectedItemIndex@25278355' has not been initialized. #17

Open
prateekmedia opened this issue Aug 4, 2021 · 1 comment

Comments

@prateekmedia
Copy link

════════ Exception caught by widgets library ═══════════════════════════════════
The following LateError was thrown building CollapsibleSidebar(
dirty, dependencies: [_EffectiveTickerMode], state: 
_CollapsibleSidebarState#b9f65(ticker inactive)):

LateInitializationError: Field '_selectedItemIndex@25278355' has not been initialized.

This error is related to null safety and late initialization of _selectedItemIndex parameter.

@luimot
Copy link

luimot commented Aug 23, 2021

I had the same Exception thrown and after reading some of the example code available, it seems that _selectedItemIndex is null until setting

isSelected: true

to a CollapsibleItem in the List of items

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

2 participants