131 Commits

Author SHA1 Message Date
Viktor Lidholt
c225a6af24 Merge pull request #1889 from vlidholt/master
Fixes navigation back to main menu in demo game
2015-11-04 13:12:23 -08:00
Adam Barth
58f41e2e84 Rev pubspecs 2015-11-02 13:19:55 -08:00
Adam Barth
05d03e5861 Rename sky.yaml to flutter.yaml
More flutter more better.
2015-11-02 12:57:27 -08:00
Viktor Lidholt
d61e39c739 Fixes navigation back to main menu in demo game 2015-10-30 16:13:26 -07:00
Hixie
51c851e3d5 Rev package versions for release.
sky_engine is now at 0.0.45
sky_services is now at 0.0.45
flx is now at 0.0.4
flutter is now at 0.0.15
flutter_sprites is now at 0.0.12
2015-10-29 14:41:56 -07:00
Hixie
46f19afade Rev package versions for release.
sky_engine is now at 0.0.44
sky_services is now at 0.0.44
flx is now at 0.0.3
flutter is now at 0.0.14
flutter_sprites is now at 0.0.11
2015-10-28 14:54:33 -07:00
Adam Barth
d25ff94259 Merge pull request #1832 from abarth/tap_position
Add a position to the onTap callback
2015-10-27 14:20:35 -07:00
Adam Barth
0d1e58072b Add a position to the onTap callback
Fixes #1807
2015-10-27 14:12:54 -07:00
Viktor Lidholt
400ba1799e Merge pull request #1833 from vlidholt/master
Improves physics debug drawing
2015-10-27 14:08:05 -07:00
Ian Hickson
4b56dd50a0 Track scroll position
- Change RouteArguments to pass the route's BuildContext rather than
  the Navigator. This caused the bulk of the examples/ and .../test/
  changes (those are mostly mechanical changes). It also meant I could
  simplify Navigator.of().

- Make initState() actually get called when the State's Element is in
  the tree, so you can use Foo.of() functions there. Added a test for
  this also.

- Provide a RouteWidget so that routes have a position in the Widget
  tree. The bulk of the route logic is still in a longer-lived Route
  object for now.

- Make Route.setState() only rebuild the actual route, not the whole
  navigator.

- Provided a Route.of().

- Provided a Route.writeState / Route.readState API that tries to
  identify the clients by their runtimeType, their key, and their
  ancestors keys, up to the nearest ancestor with a GlobalKey.

- Made scrollables hook into this API to track state. Added a test to
  make sure this works.

- Fix the debug output of GestureDetector and the hashCode of
  MixedViewport.

- Fixed ScrollableWidgetListState<T> to handle infinite lists.
2015-10-27 13:46:07 -07:00
Viktor Lidholt
6358ddfd62 Updates physics test to draw debug 2015-10-27 13:39:19 -07:00
Adam Barth
e448acb008 Use VoidCallback for onPressed and friends
Previous these callbacks were leaking the implementation detail that they were
triggered by taps. In a later patch, we're going to add a parameter to
GestureTapCallback that these callbacks won't have.

Related to #1807
2015-10-27 10:21:10 -07:00
Viktor Lidholt
de8f599a42 Merge pull request #1797 from vlidholt/master
Adds motors to revolute joints and prismatic joints
2015-10-26 13:28:32 -07:00
Viktor Lidholt
9b2da74531 Removing debug printout 2015-10-26 13:23:33 -07:00
Hixie
a8bd598fc4 Strong modeify the examples
This makes skyanalyzer also check the examples, and fixes everything it
found there.
2015-10-23 18:13:25 -07:00
Viktor Lidholt
5d089f91b4 Removes debug printouts in sprite physics 2015-10-23 13:46:19 -07:00
Viktor Lidholt
5395b45172 Fixes sprite physics to work correctly with the node graph
Teleportation for physics bodies works again
2015-10-23 13:31:13 -07:00
Viktor Lidholt
c5e37e9e5e Merge pull request #1697 from vlidholt/master
First pass on sprite physics node hierarchy integration
2015-10-20 16:35:08 -07:00
Viktor Lidholt
7a056a2f53 Adds support for scaling sprite physics groups 2015-10-20 10:47:58 -07:00
Adam Barth
1d6191cb71 Move animation curves into a Curves namespace 2015-10-19 18:08:52 -07:00
Adam Barth
75fe9414e7 Give the CustomPaint and SizeObserver callbacks better names
The style we use for callbacks in widgets is "onFoo". These classes were using
an order naming convention and just called their callbacks "callback".
2015-10-19 17:27:40 -07:00
Viktor Lidholt
126881fd47 Renames PhysicsNode to PhysicsWorld 2015-10-19 13:27:32 -07:00
Viktor Lidholt
facecac7e0 Merge pull request #1672 from vlidholt/master
Makes sprite physics bodies scalable
2015-10-19 12:30:02 -07:00
Adam Barth
1782be8d98 Remove old setFoo functions on Paint
We now just use Dart properties, which is more idiomatic.
2015-10-19 12:21:34 -07:00
Viktor Lidholt
141f36ff51 Updates physics test 2015-10-19 12:13:20 -07:00
Viktor Lidholt
477b231b63 Updates physics test 2015-10-15 17:08:51 -07:00
Adam Barth
06a9623906 Rename skysprites to flutter_sprites 2015-10-13 16:34:01 -07:00
Jason Simmons
c5e01a4067 Update imports of skysprites to flutter_sprites 2015-10-13 16:07:38 -07:00
Adam Barth
1e4bc6ddb9 Fix game's pubspec.yaml 2015-10-13 14:26:58 -07:00
Viktor Lidholt
9aafb26ae6 Merge pull request #1580 from vlidholt/master
Working joints in sprite physics
2015-10-12 14:10:19 -07:00
Adam Barth
404f7d3433 Add .old extension to silence analyzer
These examples haven't been ported to fn3 yet. Before this patch, they caused a
lot of noise in the analyzer output.
2015-10-12 13:45:33 -07:00
Viktor Lidholt
74c59a749f Updates sprite physics test 2015-10-12 13:39:47 -07:00
Adam Barth
9f736f197b Reattach fitness to the build
We can build Fitness again now that playfair has been updated to account for
the package:flutter rename.
2015-10-12 00:24:24 -07:00
Adam Barth
4d0b7911a0 Import dart:ui as ui (instead of as sky) 2015-10-09 20:55:54 -07:00
Adam Barth
dca1370bc6 Rename package:sky to package:flutter 2015-10-09 20:44:52 -07:00
Adam Barth
72c103cefa Rename dart:sky to dart:ui 2015-10-09 19:27:13 -07:00
Adam Barth
6483ebeecc Rename App to MaterialApp
MaterialApp assumes that you're using material design.

Also move radial reaction and fix imports for stats box.
2015-10-09 10:27:22 -07:00
Adam Barth
3b06c85c6d Split material design widgets out of widgets.dart
These are now part of material.dart.
2015-10-09 10:07:06 -07:00
Viktor Lidholt
98eb54a53c Merge pull request #1541 from vlidholt/master
Adds support for keeping track of contact points in physics
2015-10-08 16:20:40 -07:00
Viktor Lidholt
ed999dca02 Updates sprite physics test 2015-10-08 16:13:56 -07:00
Adam Barth
4e8ee23a1a Remove ButtonState
Clients should just use a GestureDetector (or an InkWell) instead.
2015-10-08 10:26:34 -07:00
Viktor Lidholt
bf4342fa9a Adds default text style 2015-10-06 09:28:05 -07:00
Hixie
3467f32a1f Simplify the usage of Navigator's routes argument
(These are changes cherry-picked from in-flight branches since they are
more independent and could be helpful even without those changes.)

- Change RouteBuilder's signature to take a single argument in which the
  other fields are placed, so that we can keep iterating on those
  arguments without having to break compatibility each time. Also, this
  makes defining route builders much simpler (only one argument to
  ignore rather than a variable number).

- Expose the next performance to RouteBuilders, since sometimes the
  route itself might not be where it's used.

- Allow BuildContext to be used to walk children, just like it can for
  ancestors

- Allow BuildContext to be used to get the Widget of the current
  BuildContext

- Allow StatefulComponentElement to be referenced with a type
  specialisation so that you don't have to cast when you know what the
  type you're dealing with actually is.
2015-10-05 13:59:30 -07:00
Viktor Lidholt
d97a07c94c Handle removal of sprite physics bodies during the physics simulation 2015-10-05 13:47:51 -07:00
Viktor Lidholt
4a7e6e9bcf Updates work with latest Flutter changes 2015-10-02 15:10:02 -07:00
Viktor Lidholt
b3dc369bd0 Sprite physics, first iteration 2015-10-02 14:15:14 -07:00
Adam Barth
8cf43b65d2 Moves from vector_math to vector_math_64
* Moves from vector_math to vector_math_64
* Adds support for Float64List in Dart bindings
2015-10-01 14:46:13 -07:00
Adam Barth
feb70684f5 Make fn3 the default widget framework 2015-10-01 09:48:35 -07:00
Adam Barth
d7e3388b13 Remove unused imports 2015-10-01 09:30:31 -07:00
Adam Barth
9d63bb1381 Port SkySprites and clients to fn3 2015-10-01 09:26:19 -07:00