Skip to content

Instantly share code, notes, and snippets.

@dukesteen
Created June 4, 2020 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dukesteen/1f3d561245a8216013dbfecd6ce89703 to your computer and use it in GitHub Desktop.
Save dukesteen/1f3d561245a8216013dbfecd6ce89703 to your computer and use it in GitHub Desktop.
child: ListView.builder(
itemBuilder: (BuildContext context, int index) {
print('rebuilt list (index: $index)');
return Provider.value(
value: model.salaryModels[index],
child: SalaryEntryCard(
salaryModel: model.salaryModels[index],
key: UniqueKey(),
),
);
},
itemCount: model.salaryModels.length,
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment