Problem switch values in ListView flutter
问题 I create a Switch widget in ListView for each element. When i click on switch, the value change for all elements. I check in flutter docs, dart docs... I think, i don't recup the element position in onChanged method. But how do ? My value isSwitched changed when i clicked. I recup the lignes when i cliked thanks to : snapshot.data[index].name Theme screen : class _ThemePage extends State<ThemePage> { bool isSwitched = false; @override Widget build(BuildContext context) { return new Scaffold(