title: How do I make the update page display data according to the index and the data can be saved to the database when updating?
body: <p>I'm a new flutter user, so this time I want to explain my problem. I made a data update. When I open the edit data page, the data cannot appear automatically according to the index, then when an update is made, the data that has been entered cannot be saved. Here's the full source code of my flutter lib.</p>
  <p>Link source code: <a href="https://github.com/azmi1700018002/akm-front" rel="nofollow noreferrer">https://github.com/azmi1700018002/akm-front</a></p>
  <p>the update form does not appear automatically
  <a href="https://i.stack.imgur.com/bMMwo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bMMwo.png" alt="enter image description here" /></a></p>
  <p>After updating the data cannot be stored in the database
  <a href="https://i.stack.imgur.com/3vjBr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3vjBr.png" alt="enter image description here" /></a></p>