Skip to content

Instantly share code, notes, and snippets.



Created May 29, 2020
What would you like to do?
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
import 'main.dart';
List<DataPoint> args;
class GraphPage extends StatelessWidget {
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