Skip to content

Instantly share code, notes, and snippets.

@NITIN-ME
Created May 29, 2020 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NITIN-ME/77cf7279f7107754a41b6501e389ada4 to your computer and use it in GitHub Desktop.
Save NITIN-ME/77cf7279f7107754a41b6501e389ada4 to your computer and use it in GitHub Desktop.
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