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
928c6290
Commit
928c6290
authored
Dec 10, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove last traces of onEvent.
parent
5ddbc03b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
hello_world.dart
examples/raw/hello_world.dart
+3
-5
interactive_flex.dart
examples/rendering/interactive_flex.dart
+3
-4
No files found.
examples/raw/hello_world.dart
View file @
928c6290
...
...
@@ -46,10 +46,8 @@ void beginFrame(Duration timeStamp) {
ui
.
window
.
render
(
scene
);
}
void
handleEvent
(
String
eventType
,
double
timeStamp
)
{
if
(
eventType
==
'back'
)
{
print
(
'Pressed back button.'
);
}
void
handlePopRoute
(
)
{
print
(
'Pressed back button.'
);
}
void
handlePointerPacket
(
ByteData
serializedPacket
)
{
...
...
@@ -73,7 +71,7 @@ void main() {
print
(
'Hello, world'
);
color
=
new
ui
.
Color
.
fromARGB
(
255
,
0
,
255
,
0
);
ui
.
window
.
onBeginFrame
=
beginFrame
;
ui
.
window
.
on
Event
=
handleEvent
;
ui
.
window
.
on
PopRoute
=
handlePopRoute
;
ui
.
window
.
onPointerPacket
=
handlePointerPacket
;
ui
.
window
.
scheduleFrame
();
}
examples/rendering/interactive_flex.dart
View file @
928c6290
...
...
@@ -37,9 +37,8 @@ class RenderImageGrow extends RenderImage {
RenderImageGrow
image
;
void
handleEvent
(
String
eventType
,
double
timeStamp
)
{
if
(
eventType
==
"back"
)
activity
.
finishCurrentActivity
();
void
handlePopRoute
(
)
{
activity
.
finishCurrentActivity
();
}
final
Map
<
int
,
Touch
>
touches
=
<
int
,
Touch
>{};
...
...
@@ -116,6 +115,6 @@ Pancetta meatball tongue tenderloin rump tail jowl boudin.""";
updateTaskDescription
(
'Interactive Flex'
,
topColor
);
new
FlutterBinding
(
root:
root
);
ui
.
window
.
on
Event
=
handleEvent
;
ui
.
window
.
on
PopRoute
=
handlePopRoute
;
ui
.
window
.
onPointerPacket
=
handlePointerPacket
;
}
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