I'm creating a online grocery shopping with flutter so I need to integrate live data update without refresh like Fetch api data automatically syncing how to achieve this feature I have already created the app and now I have to add this feature
CodePudding user response:
you can do this with socket.io
or graphql
, in which you receive stream
as data so you can easily update data without fetching from api but for that you to create whole custom backend, or you can use firebase
which provide data as stream
you can also use that.
CodePudding user response:
Sample. You need to a streambuilder and a timer for periodic tasks.