27629 Commits

Author SHA1 Message Date
Adam Barth
67367974ef Merge pull request #1538 from abarth/fix_snackbar
SnackBar throws exception on creation
2015-10-08 10:27:58 -07:00
Adam Barth
3308ff0026 Remove ButtonState
Clients should just use a GestureDetector (or an InkWell) instead.
2015-10-08 10:26:34 -07:00
Hans Muller
09d26302cb IndexedStack
Added horizontal and vertical alignment properties to Stack so that the origin of non-positioned children can be specified. Currently all of the non-positioned children just end up with their top-left at 0,0. Now, for example, you can center the children by specifying verticalAlignment: 0.5, horizontalAlignment: 0.5.

Added IndexedStack which only paints the stack child specified by the index property. Since it's a Stack, it's as big as the biggest non-positioned child. This component will be essential for building mobile drop down menus.

Added a (likely temporary) example that demonstrates IndexedStack.
2015-10-08 10:21:24 -07:00
Adam Barth
6b1c85a8b0 SnackBar throws exception on creation
It was trying to grab the route's performance before it was created. Now we
create the performance eagerly again.
2015-10-08 10:17:19 -07:00
Adam Barth
2da0eb9769 Merge pull request #1500 from abarth/drawer_animate_back
The Drawer should animate out when popped off the navigator
2015-10-08 10:16:34 -07:00
Viktor Lidholt
56ac0d9cc7 Adds support for keeping track of contact points in physics 2015-10-08 10:15:32 -07:00
Adam Barth
a8ea45f9e0 Merge pull request #1535 from abarth/button_highlight
FlatButton highlights but doesn't tap around edge
2015-10-08 10:14:40 -07:00
Viktor Lidholt
dd6d467657 Merge pull request #1526 from vlidholt/master
Adds support for applying forces and impulses to sprite physics
2015-10-08 10:13:58 -07:00
Hans Muller
da4f7b988a BoxConstraints.toString() should show closed intervals 2015-10-08 09:55:51 -07:00
Adam Barth
1cea4846bd FlatButton highlights but doesn't tap around edge
Now we trigger the highlight from the InkWell so that it matches the tap.

Fixes #1525
2015-10-08 09:45:29 -07:00
Adam Barth
d234ed932e Re-enable passing tests 2015-10-07 20:12:39 -07:00
Adam Barth
68acd2615d The Drawer should animate out when popped off the navigator
Now with more clear ownership over the Performance.
2015-10-07 20:09:45 -07:00
Hixie
d45bf1457c HomogeneousViewport support for Theme.of()
Previously, RenderObjectElements didn't support being marked dirty. This
is fine, except for MixedViewport and HomogeneousViewport, which have
builder functions to which they hand themselves as a BuildContext. If
those builder functions call, e.g., Theme.of(), then when the theme
changes, the Inherited logic tries to tell the RenderObjectElement
object that its dependencies changed and that doesn't go down well.

This patch fixes this by making RenderObjectElement a BuildableElement,
and making MixedViewport and HomogeneousViewport hook into that to
rebuild themselves appropriately.

Also, this was only found at all because ThemeData didn't implement
operator==, so we were aggressively marking the entire tree dirty all
the time. That's fixed here too.

Also, I changed card_collection.dart to have more features to make this
easier to test. This found bugs #1524, #1522, #1528, #1529, #1530, #1531.
2015-10-07 15:53:50 -07:00
Ian Fischer
43aaf50e05 Merge pull request #78 from iansf/ios_start
Add implementation of start and stop commands for iOS.
2015-10-07 15:45:34 -07:00
Ian Fischer
844678ddce Add implementation of start and stop commands for iOS. 2015-10-07 15:44:02 -07:00
Ian Fischer
72cc4d6fde Don’t give a scary error about not being able to run on Android if there’s no Android device connected. 2015-10-07 15:29:13 -07:00
Viktor Lidholt
020e749291 Fixes typo in sprite physics 2015-10-07 14:05:11 -07:00
Viktor Lidholt
c363133da3 Adds support for applying forces and impulses to sprite physics 2015-10-07 13:26:36 -07:00
Adam Barth
3eaefd812e Merge pull request #1518 from abarth/performance_route
Separate Route and PerformanceRoute
2015-10-07 13:08:33 -07:00
Chinmay Garde
9f8b53f47a Document StatisticsOverlay.rasterizerThreshold 2015-10-07 11:47:30 -07:00
Chinmay Garde
d92f3fedde Fix Flutter project template 2015-10-07 11:26:55 -07:00
Chinmay Garde
73dce01e87 Allow updating the rasterizer tracing threshold from Dart 2015-10-07 11:22:51 -07:00
Adam Barth
30d16e2426 Separate Route and PerformanceRoute
This patch prepares us to create routes that control their performances more
closely.
2015-10-07 09:58:01 -07:00
James Robinson
fbb1f866d4 Merge pull request #73 from afandria/patch-1
Forward additionalArgs in run_mojo.dart
2015-10-06 19:53:28 -07:00
Ian Fischer
97f62f89c1 Merge pull request #76 from iansf/ios_start
Just log, don’t exit when the user is missing access to a command. Prevents inappropriately-failing tests.
2015-10-06 17:34:24 -07:00
Ian Fischer
7990e874df Just log, don’t exit when the user is missing access to a command. Prevents inappropriately-failing tests. 2015-10-06 16:19:06 -07:00
Mehmet Akin
90d47520fd Make checkbox widget to fit more closely to material design standard. Make changes to remove animation artefacts. 2015-10-07 01:01:54 +02:00
Devon Carew
3694517617 run tests sequentially 2015-10-06 16:00:24 -07:00
Devon Carew
f98f134ccf ws changes to prod the build 2015-10-06 15:48:04 -07:00
Devon Carew
5c6c3d9d81 ws 2015-10-06 14:52:45 -07:00
Devon Carew
15cba8f2eb rev the pubspec version 2015-10-06 14:35:18 -07:00
Ian Fischer
a9cbe436c4 Merge pull request #67 from iansf/ios_basics
Beginning implementation of IOSDevice. Implements list and install.
2015-10-06 14:20:53 -07:00
Alex Fandrianto
60cf54d6c2 Forward additionalArgs in run_mojo.dart
In 0.0.15, additional cmdline arguments were not dropped, but now in 0.0.16, the arguments are no longer forwarded.
This patchset would restore this forwarding functionality.

For example, the following command is intended to pass `enable-multiprocess` to the mojo_shell.
`enable-multiprocess` in 0.0.16 does not get passed along, but this patchset would allow it to once again.

pub run sky_tools -v --very-verbose run_mojo \
	--mojo-path $MOJO_DIR/src \
	--app app.flx --android \
	-- \
	--enable-multiprocess
2015-10-06 13:14:22 -07:00
Kris Giesing
79c88b4d7c Merge remote-tracking branch 'upstream/master' 2015-10-06 12:53:54 -07:00
Devon Carew
524d8379f4 more verbose test failures 2015-10-06 12:08:08 -07:00
Ian Fischer
12192d00c1 Beginning implementation of IOSDevice. Implements list and install.
Also update tests to be compatible with the presence of iOS and add tests for list and install.
2015-10-06 11:46:29 -07:00
Devon Carew
0364590b83 delay looking for android devices 2015-10-06 11:36:48 -07:00
Hans Muller
cf17dd9687 Merge pull request #1509 from HansMuller/remove_popup_menu_margin
Remove PopupMenu margin

The margins make using showMenu's menuPosition argument difficult and they're not really needed.

I also made a few small gratuitous changes in navigator.dart.
2015-10-06 11:03:23 -07:00
Hans Muller
56d9d85f2a Remove PopupMenu margin
The margins make using showMenu's menuPosition argument difficult and they're not really needed.

I also made a few small gratuitous changes in navigator.dart.
2015-10-06 10:55:31 -07:00
Chinmay Garde
ad155b23a5 Update pubspec revision to 0.0.16 2015-10-06 10:53:29 -07:00
Adam Barth
66c6ce3794 Merge pull request #1507 from abarth/image_decoding
NetworkImage occasionally does not grab the image
2015-10-06 10:51:21 -07:00
Viktor Lidholt
ebaa45c788 Merge pull request #1508 from vlidholt/master
Improvements to sprite physics
2015-10-06 10:44:47 -07:00
Viktor Lidholt
b6e12ca9aa Forwards physics body properties to box2d in sprite physics 2015-10-06 10:39:26 -07:00
Adam Barth
8b1effc544 NetworkImage occasionally does not grab the image
I haven't been able to reproduce this bug consistently, but my theory is that
the ImageDecoder was being garbage collected before it called its completion
callback. This patch prevents that by keeping a reference to the image decoder
while the callback is in flight.

Fixes #801
2015-10-06 10:37:55 -07:00
Adam Barth
2d0d1645be Merge pull request #1503 from abarth/simplify_scaffold
Simplify Scaffold
2015-10-06 10:09:35 -07:00
Adam Barth
932626aad1 Merge pull request #1504 from abarth/tab_shadow
ToolBar with a TabBar shouldn't have a shadow
2015-10-06 10:08:11 -07:00
Adam Barth
89a09822bf Simplify Scaffold
Rather than using a custom render object, we can just use a Stack.
2015-10-06 10:06:17 -07:00
Viktor Lidholt
5ac4d1ea28 Adds forwarding of properties to box2d in sprite physics 2015-10-06 09:59:16 -07:00
Viktor Lidholt
a07cb95ec2 Merge pull request #1506 from vlidholt/master
Fixes to demo game
2015-10-06 09:57:21 -07:00
Adam Barth
ee0c01c54c Merge pull request #1501 from abarth/initial_page
PageableList should take initialPage instead of initialScrollOffset
2015-10-06 09:51:35 -07:00