Usage of FutureBuilder with setState
Indeed, it will loop into infinity because whenever build is called, updateList is also called and returns a brand new future. You have to keep your build pure. It should just read and combine variables and properties, but never cause any side effects! Another note: All fields of your StatefulWidget subclass must be final (widget.items … Read more