Skip to content

Instantly share code, notes, and snippets.

@NITIN-ME
Created May 29, 2020 08:07
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/21a84d9b7fc7b939156510d1ca05fdff to your computer and use it in GitHub Desktop.
Save NITIN-ME/21a84d9b7fc7b939156510d1ca05fdff to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
import 'main.dart';
List<DataPoint> args;
class GraphPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
args = ModalRoute.of(context).settings.arguments;
return Scaffold(
appBar: AppBar(
title: Center(
child: Text(
'CoronaVirus Tracker',
),
),
backgroundColor: Colors.purple,
),
body: MyChartBody(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment