1931 Commits

Author SHA1 Message Date
Matt Perry
6c00740663 deps 2015-10-21 17:55:20 -04:00
Matt Perry
104e125d93 Create new 'flx' package. Just a copy for now.
This will be shared by sky/updater and flutter_tools. Currently
bundle.dart and signing.dart are unmodified copies of the files from
updater and flutter_tools, respectively. This is so future changes are
easier to see.
2015-10-21 17:20:25 -04:00
Jim Beveridge
a6c1018521 Merge pull request #1693 from jimbeveridge/close
Close the UrlLoaderProxy on error.
2015-10-20 10:43:18 -07:00
Ian Hickson
37b4800734 Merge pull request #1695 from Hixie/offstage-tests
RenderOffStage test
2015-10-20 10:28:31 -07:00
Hixie
ff76ceb40e RenderOffStage test
Also, give RenderViewport a default offset.
2015-10-20 10:17:05 -07:00
Jim Beveridge
2cb9a00f46 Close the UrlLoaderProxy on error.
Fixes #1680.
2015-10-20 09:58:46 -07:00
Hixie
1e9e4e159d RenderOverflowBox baseline logic
I accidentally lost this when extracting RenderOverflowBox from
RenderProxyBox.
2015-10-20 09:52:48 -07:00
Hixie
5214893043 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
1d5f25333a 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
f79fdff2d0 Move animation curves into a Curves namespace 2015-10-19 18:08:52 -07:00
Adam Barth
529fa95f87 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
2edc6dbb3d Add AnimatedSizeValue 2015-10-19 17:16:05 -07:00
Hixie
4f96083e66 Fix warning in test. Arguments must be typed. 2015-10-19 16:07:01 -07:00
Hixie
ed195cfa19 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
Adam Barth
6fe9446f01 Merge pull request #1679 from abarth/fix_analyzer
Fix analyzer warnings in examples
2015-10-19 15:31:59 -07:00
Matt Perry
f9e43f12fe Merge pull request #1612 from mpcomplete/signer.cipher
Add support for verifying .flx signatures when updating
2015-10-19 17:18:17 -04:00
Adam Barth
8382ca2c0a Fix analyzer warnings in examples 2015-10-19 13:46:52 -07:00
Matt Perry
dff3fa7e46 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
734240db6d Merge pull request #1678 from abarth/show_color_filter
Show ColorFilter
2015-10-19 13:37:55 -07:00
Adam Barth
4094223378 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
Viktor Lidholt
623b3ba06d Merge pull request #1677 from vlidholt/master
Renames PhysicsNode to PhysicsWorld
2015-10-19 13:33:19 -07:00
Viktor Lidholt
6bd4fb8515 Renames PhysicsNode to PhysicsWorld 2015-10-19 13:27:32 -07:00
Adam Barth
8402b54858 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
552f26d713 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
715b304ea2 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
6b2d121f2d Merge pull request #1674 from abarth/rm_color_filter
Remove ColorFilter widget
2015-10-19 12:55:12 -07:00
Adam Barth
9baf8eb372 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
Viktor Lidholt
0ef9da85e1 Merge pull request #1672 from vlidholt/master
Makes sprite physics bodies scalable
2015-10-19 12:30:02 -07:00
Adam Barth
47c854b8fc 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
2aa79d5694 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
6f9fe7b1fe Updates physics test 2015-10-19 12:13:20 -07:00
Viktor Lidholt
1e228618eb Makes sprite physics bodies scalable 2015-10-19 12:13:00 -07:00
Adam Barth
27b5fc14a3 Scaffold should wrap its body in a Material
Fixes #1669
2015-10-19 12:11:10 -07:00
Adam Barth
88bcfa2d79 Rev pub packages 2015-10-19 11:26:31 -07:00
Adam Barth
ccc98c8f41 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
284eaa9cd7 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
780ee181e5 Merge pull request #1657 from Hixie/debugging
Reduce latency of low-volume debugPrint output
2015-10-18 14:51:44 -07:00
Hixie
fb8fe97a9b 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
7c0c1c9609 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
aed45ba92b 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
ed189ba957 Merge pull request #1653 from Hixie/debugging
Sundry debugging aids and fixes
2015-10-16 19:27:51 -07:00
Hixie
c701ad6ad0 RelativeRect
Introduce a class that can describe the metrics used in a Positioned
widget, to enable easier manipulation and storage of the values, e.g.
for animation purposes.
2015-10-16 17:01:39 -07:00
Hixie
d0d84e1666 Sundry debugging aids and fixes
(These are all the debugging-related fixes and trivial typo fixes that I
extracted out of my heroes branch.)

Fix rendering.dart import order.

Introduce a debugLabel for Performances so that when you create a
performance, you can tag it so that if later you print it out, you can
figure out which performance it is.

Allow the progress of a PerformanceView to be determined (but not set).

Allow subclasses of PerformanceView that are constants to be created by
defining a constant constructor for PerformanceView.

Introduce a debugPrint() method that throttles its output. This is a
test to see if it resolves the problems people have been having with
debugDumpRenderTree() et al having their output corrupted on Android. It
turns out (according to some things I read On The Internets) that
Android only has a 64KB kernel buffer for its logs and and if you output
to it too fast, it'll drop data on the floor. If this does in fact
reliably resolve this problem, we should probably move the fix over to
C++ land (where "print" is implemented) so that any use of print is
handled (avoiding the interleaving problem we have now if you use both
debugPrint() and print()).

Fix a bug with the debugging code for "size". In the specific case of a
RenderBox having a parent that doesn't set parentUsesSize, then later
the parent setting parentUsesSize but the child having its layout
short-circuited (e.g. because the constraints didn't change), we didn't
update the _DebugSize object to know that now it's ok that the size be
used by the parent, and we'd assert.

Also, allow a _DebugSize to be used to set the size of yourself.
Previously you could only set your size from a regular Size or from your
child's _DebugSize.

Add more debugging information to various Widgets where it might be
helpful.

Make GlobalKey's toString() include the runtimeType so that when
subclassing it the new class doesn't claim to be a GlobalKey instance.

Include the Widget's key in the Element's description since we don't
include it in the detailed description normally (it's in the name part).

Fix a test that was returning null from a route.
2015-10-16 16:41:56 -07:00
Hans Muller
7d1dfc7be0 Merge pull request #1651 from HansMuller/fix_scrollable_tabs
Fix scrollable tabs, add basic unit test
2015-10-16 15:49:22 -07:00
Collin Jackson
a37fc68234 Merge pull request #1640 from collinjackson/stocks_app
test harness for stocks app on iOS
2015-10-16 15:34:45 -07:00
Hans Muller
09ac8de2d6 Fix scollable tabs, add basic unit test 2015-10-16 15:10:26 -07:00
Hixie
4c50643688 Release process rev number updates for stage two 2015-10-16 14:44:02 -07:00
Hans Muller
cd27fd2370 Merge pull request #1647 from HansMuller/restore_overlay_geometry
Restored overlay_geometry example
2015-10-16 11:13:16 -07:00
Viktor Lidholt
dd956b9fe6 Merge pull request #1645 from vlidholt/master
Adds teleporting methods for moving sprite kinematic bodies
2015-10-16 11:04:42 -07:00
Hans Muller
ccfecf434d Restored overlay_geometry example 2015-10-16 11:00:12 -07:00