1727 Commits

Author SHA1 Message Date
Hixie
ea4be3fbce Debug grid over the navigator stack
This grid makes it significantly easier to track down errors when you're
looking at coordinates in a render tree dump and want to see if they're
what you expect or if they're wildly away from the right location.
2015-10-21 13:31:09 -07:00
Hixie
ea14a8d31f AlwaysCompletePerformance, ReversePerformance
These new PerformanceView classes are transforms over PerformanceViews.
The first is a cheap way to tell code that expects a performance to not
animate after all, and the other is a way to replace a view of a
performance going in one direction with a view of a performance going in
the other direction.

See also https://github.com/flutter/engine/issues/1708
2015-10-21 11:38:52 -07:00
Hixie
bd7f416c37 RotationTransition
A transition that rotates its contents.
2015-10-21 11:35:31 -07:00
Hixie
51dbb68c7c Make Route.build() arguments match RouteBuilder()
Assert at build time that PageRoute route builders do not return null
widget trees.

Also very minor new code comments and code reorg to help make the heroes
patch easier to review.

(These are changes that are unrelated to Heroes but that were part of
the Heroes patch.)
2015-10-21 11:33:44 -07:00
Adam Barth
cd220bcd01 Rev pub packages 2015-10-21 11:13:12 -07:00
Ian Hickson
97251bcbb5 Merge pull request #1710 from Hixie/unique-key
UniqueKey
2015-10-21 11:08:44 -07:00
Adam Barth
7980151329 Rev pub packages 2015-10-21 11:07:06 -07:00
Adam Barth
0d883e3aab Rev pub packages 2015-10-21 11:05:59 -07:00
Hixie
e69611d266 UniqueKey
Sometimes you need a Key (not a GlobalKey) that is only equal to itself
but can be used multiple times in the tree. Enter UniqueKey!
2015-10-21 10:03:11 -07:00
Adam Barth
77622e13b6 Tighten flutter's dependency on mojo
The 0.2.1 release of the mojo package isn't actually compatible with Flutter
despite claiming to be a minor release. The real fix is to make Flutter
compatible with that release, but there are several yak shaves involved.
2015-10-20 18:10:56 -07:00
Adam Barth
199c0bd933 Rev pub packages 2015-10-20 16:23:43 -07:00
Adam Barth
a951c30309 Rev pubspec.yaml 2015-10-20 16:18:35 -07:00
Adam Barth
f0e846730d Improve comments describing FractionalOffset
Fixes #1702
2015-10-20 16:10:22 -07:00
Adam Barth
e2be08b17a Merge pull request #1690 from abarth/transition_container
Adds EnterExitTransition widget
2015-10-20 15:41:34 -07:00
Adam Barth
41ae9d2b09 Adds EnterExitTransition widget
This widget smoothly resizes as its child changes and lets you provide entrance
and exit transitions for its children.
2015-10-20 15:37:55 -07:00
Jim Beveridge
9826b5b87d Merge pull request #1693 from jimbeveridge/close
Close the UrlLoaderProxy on error.
2015-10-20 10:43:18 -07:00
Ian Hickson
bbfc3e8e81 Merge pull request #1695 from Hixie/offstage-tests
RenderOffStage test
2015-10-20 10:28:31 -07:00
Hixie
58c1593889 RenderOffStage test
Also, give RenderViewport a default offset.
2015-10-20 10:17:05 -07:00
Jim Beveridge
924b9a7b62 Close the UrlLoaderProxy on error.
Fixes #1680.
2015-10-20 09:58:46 -07:00
Hixie
2ffd0ffb95 RenderOverflowBox baseline logic
I accidentally lost this when extracting RenderOverflowBox from
RenderProxyBox.
2015-10-20 09:52:48 -07:00
Hixie
58444d1dd7 OffStage
Introduces a new Widget that lays its child out, but does not render it.
Also, moves RenderOverflowBox to its own file since it has nothing to do
with proxy box really.
2015-10-20 09:00:48 -07:00
Adam Barth
8e164a33e9 Normalize some function names in proxy_box.dart
We call this function _getInnerConstraints in other classes. Also, this change
makes it private for RenderOverflowBox.
2015-10-20 08:14: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
Adam Barth
6a224ab52d Add AnimatedSizeValue 2015-10-19 17:16:05 -07:00
Hixie
5b7934951e Fix warning in test. Arguments must be typed. 2015-10-19 16:07:01 -07:00
Hixie
741e4c2f4a requestPostFrameCallback()
Provide a way to schedule a callback for immediately after the current
frame has been sent to the GPU thread. This is useful for times where
you want to immediately schedule yourself for another build or layout
because, for instance, you just displayed frame zero of an animation and
you want to use the metrics from that layout to set up the actual
animation to begin immediately, such that the very next frame is frame 1.
2015-10-19 16:05:01 -07:00
Matt Perry
d939abff59 Merge pull request #1612 from mpcomplete/signer.cipher
Add support for verifying .flx signatures when updating
2015-10-19 17:18:17 -04:00
Matt Perry
9f9605d3eb Support verifying .flx signatures when updating.
Adds a step to the updater to verify that the new .flx package is signed and
untampered.

Each .flx contains a signed manifest file. The manifest contains a SHA-256 hash
of the .flx contents. See bundle.dart for a description of the new .flx format.
2015-10-19 16:39:02 -04:00
Adam Barth
8c6d3e2a9e Show ColorFilter
Instead of requiring clients to use ui.ColorFilter, we show show the
ColorFilter class, similar to what we do for Color.
2015-10-19 13:33:39 -07:00
Adam Barth
00c0c43fe2 Merge pull request #1676 from abarth/align_uses_fractional_offset
Convert Align to use FractionalOffset instead of two doubles
2015-10-19 13:10:34 -07:00
Hixie
fb97905231 Stop AnimatedContainer from animating every build
It turns out that an AnimatedContainer with a BoxDecoration would
start animating every single time it was built, whether or not the
container's decoration had changed.
2015-10-19 13:06:59 -07:00
Adam Barth
07c5dfe266 Convert Align to use FractionalOffset instead of two doubles
It was confusing as to whether these were fractions or pixels.

Fixes #1622
2015-10-19 12:56:38 -07:00
Adam Barth
1652d771e2 Remove ColorFilter widget
This widget is slow and not commonly used. The original reason we added it was
to colorize images, but now that feature is built into the image and background
image widgets.

Fixes #1646
2015-10-19 12:39:22 -07:00
Adam Barth
5719f66f25 Merge pull request #1673 from abarth/rm_old_paint_setters
Remove old setFoo functions on Paint
2015-10-19 12:28:09 -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
Adam Barth
9b3e38bae7 Scaffold should wrap its body in a Material
Fixes #1669
2015-10-19 12:11:10 -07:00
Adam Barth
aefeaefeb8 Rev pub packages 2015-10-19 11:26:31 -07:00
Adam Barth
30751c7452 Rev pub package 2015-10-19 11:15:04 -07:00
Adam Barth
0ce0103f81 Improve roll.py
* Make the paths absolute
 * Using filter to remove tonic from mojo/dart/embedder/BUILD.gn instead of a
   patch
2015-10-19 10:35:02 -07:00
Adam Barth
edb7d79c86 Update includes to account for network service move 2015-10-19 10:30:24 -07:00
Adam Barth
e08ee3d455 Update to mojo 15d4677f174b1862d95545bf9b1866b4338c3e92 2015-10-19 10:24:27 -07:00
Collin Jackson
e1a46ff817 Merge pull request #1654 from collinjackson/stub_keyboard
Stub out unimplemented iOS keyboard methods
2015-10-19 10:17:55 -07:00
Adam Barth
640d5ee4d9 The dx and dy properties of PointerInputEvents shouldn't be null
They should be 0.0 when there's no offset.

Fixes #1661
2015-10-19 09:37:51 -07:00
Adam Barth
a788c1c9b2 Add a MaterialList
A MaterialList understands the sizing, padding, and scrollbar features of
Material Design lists.

Also, add CircleAvatar for showing the circular avatars that are commonly used
in material lists.
2015-10-19 09:15:17 -07:00
Ian Hickson
4cc6c900ea Merge pull request #1657 from Hixie/debugging
Reduce latency of low-volume debugPrint output
2015-10-18 14:51:44 -07:00
Hixie
6c7fcefe11 Enable Positioned to be animated.
Add a AnimatedRelativeRectValue class for animating RelativeRects.

Add a PositionedTransition class for animating Positioned using
AnimatedRelativeRectValues.

Add a test for PositionedTransition.

Fix a math bug a RelativeRect found by the test.

Fix a logic bug in the two ParentDataWidget classes found by the test.
Specifically, they were marking the child dirty, rather than the parent.
The parentData is for the parent's layout, not the child's, so they have
to mark the parent dirty. (I didn't hoist this up to the superclass
because ParentData could be used for painting, hit testing,
accessibility, or any number of other things, and I didn't want to bake
in the assumption that it needed markNeedsLayout.)
2015-10-17 19:06:42 -07:00
Hixie
33e6a76949 toString()ify more stuff
- truncate pixel values to 1dp since there's really no point being told
  the Size is 302.98732587287 by 648.28498579187.

- describe more Widgets so that debugDumpApp() is more useful.

- remove bufferValue from ProgressIndicator (cc @hansmuller) since it's
  not yet implemented.

- half-hearted toString() for ThemeData. There's no point making a
  complete one, since it would cause line-wrap even on big monitors in
  debugDumpApp dumps, and you can easily get the actual values from a
  debugging if that's the issue.

- flesh out BoxConstraints.toString() so that fully unconstrained and
  fully infinite constraints are called out explicitly. I experimented
  with adding even more special cases, e.g. calling out unconstrained
  widths with fixed heights, etc, but it made the output less readable.

- remove a redundant _updateVariable() in AnimatedContainer (cc
  @abarth).

- add more information to RenderView.toString().
2015-10-17 17:55:17 -07:00
Hixie
a5d69d7008 Reduce latency of low-volume debugPrint output
If we haven't printed anything for a second, then reset the count of how
much we've printed.

I also reduced the amount of data to ~16kb until we pause because I saw
some corruption even pausing 1 second every ~32kb. (Numbers are
approximate because we're counting UTF-16 characters and some of the
characters in the output are multiple bytes in UTF-8.)
2015-10-17 16:43:22 -07:00
Ian Hickson
b6de7cb119 Merge pull request #1653 from Hixie/debugging
Sundry debugging aids and fixes
2015-10-16 19:27:51 -07:00