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?
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