1) All fields of your StatefulWidget subclass must be final (widget.items = ... is bad).
2) The state that changes must be stored in the State object.