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

RangeError (index): Invalid value: Valid value range is empty: 0 #27

Open
webprolix opened this issue Jul 25, 2021 · 1 comment
Open

Comments

@webprolix
Copy link

return AlphabetListScrollView(
strList: _names!,
highlightTextStyle: const TextStyle(
color: Colors.yellow,
),
showPreview: true,
itemBuilder: (context, index) {
return ListTile(title: Text(_names![index]));
},
indexedHeight: (i) {
return 80;
},
keyboardUsage: true,
headerWidgetList: [
AlphabetScrollListHeader(widgetList: [
Padding(
padding: const EdgeInsets.all(16.0),
child: TextFormField(
decoration: const InputDecoration(
border: OutlineInputBorder(),
suffix: Icon(
Icons.search,
color: Colors.grey,
),
labelText: "Search",
),
),
)
], icon: const Icon(Icons.search), indexedHeaderHeight: (index) => 80),
],
);
}

its showing error like "RangeError (index): Invalid value: Valid value range is empty: 0"

@MiranMustafa
Copy link

@webprolix Did you find a fix for this?

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