From 9ac1f3c6cf6ae541e00b46c8eccece4c1d6fabc7 Mon Sep 17 00:00:00 2001 From: Victor Choueiri Date: Thu, 1 Feb 2018 17:41:30 +0200 Subject: [PATCH] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01a03b2..929a224 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,15 @@ Import the package: import 'package:flutter_circular_chart/flutter_circular_chart.dart'; ``` -Create chart data entry objects: +Create a [GlobalKey](https://docs.flutter.io/flutter/widgets/GlobalKey-class.html) to be able to access the chart and update its data: ``` final GlobalKey _chartKey; +``` +Create chart data entry objects: + +``` List data = [ new CircularStackEntry( [ @@ -55,7 +59,8 @@ List data = [ ), ]; ``` -Create an `AnimatedCircularChart`: + +Create an `AnimatedCircularChart`, passing it the `_chartKey` and initial `data`: ``` @override