Skip to content

Instantly share code, notes, and snippets.

@NITIN-ME

NITIN-ME/graph.dart

Created May 29, 2020
Embed
What would you like to do?
class ExponentialCurve extends StatefulWidget {
final List<charts.Series<DataPoint, int>> lst;
ExponentialCurve(this.lst);
@override
_ExponentialCurveState createState() => _ExponentialCurveState();
}
class _ExponentialCurveState extends State<ExponentialCurve> {
@override
Widget build(BuildContext context) {
return RepaintBoundary(child: charts.LineChart(this.widget.lst, animate: true,));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment