From bda67cdd40cf9d8c487c0be74de771ec0e2f1669 Mon Sep 17 00:00:00 2001 From: rkc13 <35339163+rkc13@users.noreply.github.com> Date: Fri, 26 Jan 2018 22:46:05 -0800 Subject: [PATCH] Update README.md errors This widget repo is awesome! Here is a couple recommendations to make the getting started code smoother. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6693029..01a03b2 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ import 'package:flutter_circular_chart/flutter_circular_chart.dart'; Create chart data entry objects: ``` +final GlobalKey _chartKey; + List data = [ new CircularStackEntry( [ @@ -53,7 +55,6 @@ List data = [ ), ]; ``` - Create an `AnimatedCircularChart`: ``` @@ -61,7 +62,7 @@ Create an `AnimatedCircularChart`: Widget build(BuildContext context) { return new AnimatedCircularChart( key: _chartKey, - size: const Size(300, 300), + size: const Size(300.0, 300.0), initialChartData: data, chartType: CircularChartType.Pie, );