Dynamically created checkbox in flutter not changing the state on clicked
问题 I am creating a checkbox field every time i press a button. but the generated checkbox is not changing the state when pressed, instead the next checkbox which is generated comes with the changed state. I have attached the video of how it is working currently (https://imgur.com/a/75vE5cj ) my entire code goes like this : class ToDoNotes extends StatelessWidget { @override Widget build(BuildContext context) { SizeConfig().init(context); return new MaterialApp( title: 'notes', theme: new