From 26fbb663b23659ad79953e012180f941f8bc8050 Mon Sep 17 00:00:00 2001 From: Keenan Thompson Date: Wed, 28 Nov 2018 11:54:30 -0600 Subject: [PATCH] Cleanup pub warnings Use relative imports instead --- .gitignore | 1 + example/lib/line/cities.dart | 2 +- example/lib/line/sparkline.dart | 2 -- example/lib/main.dart | 9 ++++----- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index e2d4f1e..6a539d0 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ build/ ios/.generated/ packages pubspec.lock +.vscode diff --git a/example/lib/line/cities.dart b/example/lib/line/cities.dart index 0ce2750..6d62520 100644 --- a/example/lib/line/cities.dart +++ b/example/lib/line/cities.dart @@ -1,5 +1,5 @@ import 'package:fcharts/fcharts.dart'; -import 'package:fcharts_example/data.dart'; +import '../data.dart'; import 'package:flutter/material.dart'; import 'package:meta/meta.dart'; diff --git a/example/lib/line/sparkline.dart b/example/lib/line/sparkline.dart index 22371d8..de97120 100644 --- a/example/lib/line/sparkline.dart +++ b/example/lib/line/sparkline.dart @@ -1,7 +1,5 @@ import 'package:fcharts/fcharts.dart'; -import 'package:fcharts_example/data.dart'; import 'package:flutter/material.dart'; -import 'package:meta/meta.dart'; /// Our sparkline data. const data = [0.0, -0.2, -0.9, -0.5, 0.0, 0.5, 0.6, 0.9, 0.8, 1.2, 0.5, 0.0]; diff --git a/example/lib/main.dart b/example/lib/main.dart index b051435..6b332d7 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,8 +1,7 @@ -import 'package:fcharts/fcharts.dart'; -import 'package:fcharts_example/bar/simple.dart'; -import 'package:fcharts_example/line/cities.dart'; -import 'package:fcharts_example/line/simple.dart'; -import 'package:fcharts_example/line/sparkline.dart'; +import 'bar/simple.dart'; +import 'line/cities.dart'; +import 'line/simple.dart'; +import 'line/sparkline.dart'; import 'package:flutter/material.dart'; void main() => runApp(new FChartsExampleApp());