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
75f10ba6
Commit
75f10ba6
authored
Oct 02, 2015
by
Viktor Lidholt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates work with latest Flutter changes
parent
48a6cd83
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
24 deletions
+11
-24
pubspec.yaml
examples/game/pubspec.yaml
+0
-2
test_physics.dart
examples/game/test_physics.dart
+11
-20
pubspec.yaml
packages/flutter_sprites/pubspec.yaml
+0
-2
No files found.
examples/game/pubspec.yaml
View file @
75f10ba6
...
...
@@ -11,5 +11,3 @@ dependency_overrides:
path
:
../../sky/packages/sky
skysprites
:
path
:
../../skysprites
box2d
:
path
:
../../../../box2d.dart
examples/game/test_physics.dart
View file @
75f10ba6
...
...
@@ -16,7 +16,6 @@ final AssetBundle _bundle = _initBundle();
ImageMap
_images
;
SpriteSheet
_spriteSheet
;
TestBedApp
_app
;
main
()
async
{
_images
=
new
ImageMap
(
_bundle
);
...
...
@@ -28,29 +27,21 @@ main() async {
String
json
=
await
_bundle
.
loadString
(
'assets/sprites.json'
);
_spriteSheet
=
new
SpriteSheet
(
_images
[
'assets/sprites.png'
],
json
);
_app
=
new
TestBedApp
();
runApp
(
_app
);
}
class
TestBedApp
extends
App
{
Widget
build
()
{
ThemeData
theme
=
new
ThemeData
(
runApp
(
new
App
(
title:
'Test Physics'
,
theme:
new
ThemeData
(
brightness:
ThemeBrightness
.
light
,
primarySwatch:
Colors
.
purple
);
return
new
Theme
(
data:
theme
,
child:
new
Title
(
title:
'Test Physics'
,
child:
new
SpriteWidget
(
),
routes:
{
'/'
:
(
navigator
,
route
)
{
return
new
SpriteWidget
(
new
TestBed
(),
SpriteBoxTransformMode
.
letterbox
)
)
);
}
}
));
}
class
TestBed
extends
NodeWithSize
{
...
...
packages/flutter_sprites/pubspec.yaml
View file @
75f10ba6
...
...
@@ -10,5 +10,3 @@ dependencies:
dependency_overrides
:
sky
:
path
:
../sky/packages/sky
box2d
:
path
:
../../../box2d.dart
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