forked from firka/flutter
Update playfair after package:flutter rename
This commit is contained in:
@@ -4,11 +4,10 @@
|
||||
|
||||
library playfair;
|
||||
|
||||
import 'dart:sky' as sky;
|
||||
import 'dart:ui' as ui;
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:sky/material.dart';
|
||||
import 'package:sky/rendering.dart';
|
||||
import 'package:sky/widgets.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/rendering.dart';
|
||||
|
||||
part 'src/base.dart';
|
||||
|
||||
@@ -236,7 +236,7 @@ class ChartPainter {
|
||||
return new Point(x, y);
|
||||
}
|
||||
|
||||
void _paintGrid(sky.Canvas canvas) {
|
||||
void _paintGrid(ui.Canvas canvas) {
|
||||
Paint paint = new Paint()
|
||||
..strokeWidth = kGridStrokeWidth
|
||||
..color = kGridColor;
|
||||
@@ -246,21 +246,21 @@ class ChartPainter {
|
||||
}
|
||||
}
|
||||
|
||||
void _paintChart(sky.Canvas canvas) {
|
||||
void _paintChart(ui.Canvas canvas) {
|
||||
Paint paint = new Paint()
|
||||
..strokeWidth = kMarkerStrokeWidth
|
||||
..color = kMarkerColor;
|
||||
Path path = new sky.Path();
|
||||
Path path = new Path();
|
||||
path.moveTo(_markers[0].x, _markers[0].y);
|
||||
for (Point marker in _markers) {
|
||||
canvas.drawCircle(marker, kMarkerRadius, paint);
|
||||
path.lineTo(marker.x, marker.y);
|
||||
}
|
||||
paint.setStyle(sky.PaintingStyle.stroke);
|
||||
paint.setStyle(ui.PaintingStyle.stroke);
|
||||
canvas.drawPath(path, paint);
|
||||
}
|
||||
|
||||
void _paintIndicator(sky.Canvas canvas) {
|
||||
void _paintIndicator(ui.Canvas canvas) {
|
||||
if (_indicator == null)
|
||||
return;
|
||||
Paint paint = new Paint()
|
||||
@@ -271,7 +271,7 @@ class ChartPainter {
|
||||
_indicator.labelPainter.paint(canvas, _indicator.labelPosition.toOffset());
|
||||
}
|
||||
|
||||
void paint(sky.Canvas canvas, Rect rect) {
|
||||
void paint(ui.Canvas canvas, Rect rect) {
|
||||
if (rect != _rect)
|
||||
_needsLayout = true;
|
||||
_rect = rect;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
name: playfair
|
||||
description: A simple charting library for Flutter
|
||||
version: 0.0.9
|
||||
version: 0.0.10
|
||||
author: Flutter Authors <flutter-dev@googlegroups.com>
|
||||
homepage: https://github.com/flutter/playfair
|
||||
dependencies:
|
||||
sky: any
|
||||
sky_tools: any
|
||||
flutter: ">=0.0.3 <0.1.0"
|
||||
dev_dependencies:
|
||||
sky_tools: any
|
||||
test: ^0.12.0
|
||||
environment:
|
||||
sdk: '>=1.8.0 <2.0.0'
|
||||
|
||||
Reference in New Issue
Block a user