diff --git a/lib/widgets/nt4_widgets/single_topic/graph.dart b/lib/widgets/nt4_widgets/single_topic/graph.dart index a603b6f..bf33f3a 100644 --- a/lib/widgets/nt4_widgets/single_topic/graph.dart +++ b/lib/widgets/nt4_widgets/single_topic/graph.dart @@ -182,14 +182,23 @@ class GraphWidget extends StatelessWidget with NT4Widget { _graphData = currentGraphData; } - return _graphWidget = _GraphWidgetGraph( - key: GlobalKey(), + _graphWidget = _GraphWidgetGraph( initialData: _graphData, subscription: subscription, mainColor: mainColor, minValue: minValue, maxValue: maxValue, ); + + // Idk why this works but otherwise it doesn't ever rebuild ¯\_(ツ)_/¯ + return StreamBuilder( + stream: Stream.periodic(const Duration(milliseconds: 500)), + builder: (context, snapshot) { + notifier = context.watch(); + + return _graphWidget!; + }, + ); } }