Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9b46c2d8
Commit
9b46c2d8
authored
Oct 12, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update playfair after package:flutter rename
parent
30757563
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
playfair.dart
packages/playfair/lib/playfair.dart
+3
-4
base.dart
packages/playfair/lib/src/base.dart
+6
-6
pubspec.yaml
packages/playfair/pubspec.yaml
+3
-3
No files found.
packages/playfair/lib/playfair.dart
View file @
9b46c2d8
...
...
@@ -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'
;
packages/playfair/lib/src/base.dart
View file @
9b46c2d8
...
...
@@ -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
;
...
...
packages/playfair/pubspec.yaml
View file @
9b46c2d8
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'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment