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
ccfecf43
Commit
ccfecf43
authored
Oct 16, 2015
by
Hans Muller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restored overlay_geometry example
parent
f77319fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
overlay_geometry.dart
examples/widgets/overlay_geometry.dart
+2
-3
No files found.
examples/widgets/overlay_geometry.dart
View file @
ccfecf43
...
...
@@ -31,9 +31,8 @@ class Marker extends StatelessComponent {
final
double
size
;
final
MarkerType
type
;
void
paintMarker
(
ui
.
Canvas
canvas
,
_
)
{
void
paintMarker
(
Painting
Canvas
canvas
,
_
)
{
Paint
paint
=
new
Paint
()..
color
=
const
Color
(
0x8000FF00
);
paint
.
setStyle
(
ui
.
PaintingStyle
.
fill
);
double
r
=
size
/
2.0
;
canvas
.
drawCircle
(
new
Point
(
r
,
r
),
r
,
paint
);
...
...
@@ -103,7 +102,7 @@ class OverlayGeometryAppState extends State<OverlayGeometryApp> {
});
}
void
handlePointerDown
(
GlobalKey
target
,
ui
.
Pointer
Event
event
)
{
void
handlePointerDown
(
GlobalKey
target
,
PointerInput
Event
event
)
{
setState
(()
{
markers
[
MarkerType
.
touch
]
=
new
Point
(
event
.
x
,
event
.
y
);
final
RenderBox
box
=
target
.
currentContext
.
findRenderObject
();
...
...
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