flutterflutter-animation

How to draw a real-time line graph with a stream of values?


If I have a stream of values, how can I draw a line chart in real-time based on those values?


Solution

  • Not sure if this will help but I have just added a plugin to Flutter that may do what you need, or if not at least give you some ideas. You can find it here

    And in this gist I have modified the example code to read the data from the device sensor stream (in real-time) which it then graphs out.