3924 Commits

Author SHA1 Message Date
Devon Carew
0e99d2fd41 fix two null-aware-operator issues 2016-01-19 09:32:35 -08:00
Ian Hickson
0bf6170c29 Merge pull request #1297 from Hixie/dialog-PENDING
StackParentData.toString() fix, RenderOpacity default
2016-01-18 22:17:31 -08:00
Ian Hickson
a10b18368e Merge pull request #1298 from Hixie/move-render-object-widgets-down
Move RenderObjectWidgets down
2016-01-18 22:17:25 -08:00
Ian Hickson
03dcd2686a Move RenderObjectWidgets down
It's confusing to have non-render-object widgets on either side of the
render object ones.
2016-01-18 21:32:01 -08:00
Ian Hickson
32cd916e00 StackParentData.toString() fix, RenderOpacity default 2016-01-18 21:14:51 -08:00
Ian Hickson
1770004eb4 Merge pull request #1291 from Hixie/block-intrinsics
Fix some intrinsic constraints contract violations.
2016-01-18 14:13:59 -08:00
Ian Hickson
60d9ab7e7b Fix some intrinsic constraints contract violations.
RenderBlock wasn't constraining the results.
RenderPadding wasn't constraining the results (which matters
especially when the constraints can't fit the padding in the first
place).
RenderViewport wasn't constraining the results.

Add a test for the block case.

To catch this kind of thing in the future, add some asserts to
debugDoesMeetConstraints() that all four intrinsic functions return
values that are within the constraints.

RenderBlockViewport doesn't support returning intrinsics, so turn off
the "no intrinsic support" asserts (and return zero) when we're doing
this new assert.

This new assert screwed up the custom layout classes' tests, so adjust
those tests to ignore the callbacks invoked from these asserts.

Add to the _debugReportException() method a short summary of the
descendants of this node. It's important to have this information when
debugging errors like these intrinsic constraints contract violations
because often nodes just pass the values through to their child so you
have to go several steps down to find the actual problem.

Fixes https://github.com/flutter/flutter/issues/1210
2016-01-18 13:54:45 -08:00
Ian Hickson
aa701d44f6 Merge pull request #1257 from Hixie/shadows
More elaborate RenderBox example
2016-01-18 13:53:22 -08:00
Ian Hickson
663ccd8b1b Merge pull request #1282 from Hixie/animated-theme
Reimplement the theme transition animation by actually animating the Theme
2016-01-18 13:22:01 -08:00
Ian Hickson
73c9ebab19 Reimplement the theme transition animation by actually animating the Theme.
As part of this:
 - A lot of classes got new lerp functions, including e.g. TextStyle.
 - Theme's constructor story got overhauled. You can now configure
   everything if you really want to, and we're better about defaults.
 - Material no longer automatically animates its background color.
   (It still does for its shadow.)
 - Tabs try to get the indicator color from the theme.
 - The fields in ThemeData got reordered for sanity.
 - Theme.== and Theme.hashCode got fixed.
 - Typography got a bit of a spring cleaning.

Fixes #613.
2016-01-18 13:07:39 -08:00
Adam Barth
098249f7ca Merge pull request #1294 from abarth/skip_header
Skip "list of devices" header from adb
2016-01-18 13:03:53 -08:00
Adam Barth
7019e92f38 Skip "list of devices" header from adb
Sometimes "adb devices" prints a header. We should skip over the header
instead of complaining that we don't recognize it.

Fixes #1293
2016-01-18 11:26:29 -08:00
Ian Hickson
eb53ec313b Merge pull request #1288 from Hixie/ViewConstraints-rename
Rename ViewConstraints to ViewConfiguration
2016-01-17 22:34:37 -08:00
Ian Hickson
a566afcbb1 Merge pull request #1287 from Hixie/scaffold
Rename _Child to _ScaffoldSlot for clarity.
2016-01-17 22:34:24 -08:00
Ian Hickson
62673cf67b Merge pull request #1286 from Hixie/better-analyze
Make 'flutter analyze' support analyzing arbitrary files
2016-01-17 22:34:13 -08:00
Ian Hickson
9d155bdce5 Merge pull request #1285 from Hixie/activity
Activity clean-up
2016-01-17 22:33:59 -08:00
Ian Hickson
51566aeffa More elaborate RenderBox example
Also, some trivial fixes for things that I found while playing with
the rendering library directly.
2016-01-17 22:31:41 -08:00
Ian Hickson
96958b203e Merge pull request #1255 from Hixie/random-fixes
Include BoxDecoration description in Container toString
2016-01-17 22:30:19 -08:00
Ian Hickson
a9bf6ec9fd Merge pull request #1283 from Hixie/dart1.14
Prepare flutter analyze for dart 1.14
2016-01-16 15:15:04 -08:00
Ian Hickson
47aee96c1f Rename _Child to _ScaffoldSlot for clarity. 2016-01-16 15:10:02 -08:00
Ian Hickson
7145784436 Rename ViewConstraints to ViewConfiguration
And rootConstraints to configuration.

This type and its variable have nothing to do with Constraints.

Fixes https://github.com/flutter/flutter/issues/829
2016-01-16 14:11:53 -08:00
Ian Hickson
1f6ed67bd9 Make 'flutter analyze' support analyzing arbitrary files
Before we didn't know how to find the packages of random files. Now we do.
2016-01-16 13:38:47 -08:00
Ian Hickson
c03c4cca10 Activity clean-up
Turns out Android crashes if the colour is not opaque, so we enforce
that at the Dart level.

Also, since label and colour are both actually optional, make them
named arguments.
2016-01-16 12:18:32 -08:00
Ian Hickson
9eb978443b Prepare flutter analyze for dart 1.14 2016-01-16 11:28:13 -08:00
Ian Hickson
5fdb074999 Merge pull request #1271 from Hixie/mojo-roll
fix framework to match new mojo sdk
2016-01-15 17:14:24 -08:00
Hixie
df78ec2b24 fix framework to match new mojo sdk
The dart bindings changed semantics in a non-compatible way.
2016-01-15 17:05:21 -08:00
Eric Seidel
0d8aa28556 Add support for running flutter tests on Chromium Infra
This uses the fancy new x-repository support:
https://github.com/luci/recipes-py/blob/master/doc/cross_repo.md

I'm not at all certain that we're going to use Chromium's
Infra for flutter, but I'm exploring and since this works
I figure I should check it in.

@abarth
2016-01-15 16:26:53 -08:00
Collin Jackson
b55dfd607c Merge pull request #1264 from collinjackson/rm_firebase
Remove Firebase flutter packge
2016-01-15 14:13:40 -08:00
Collin Jackson
32afb4a8b3 Remove Firebase Flutter package (moving to separate repo) 2016-01-15 13:52:32 -08:00
Seth Ladd
f411d2d78e Merge pull request #1262 from sethladd/fix-links
fix links to new website
2016-01-15 13:35:21 -08:00
Seth Ladd
af250fc9cf fix links to new website 2016-01-15 13:08:27 -08:00
Chinmay Garde
c8672a40c1 Fix Dart analyzer warning 2016-01-15 11:51:45 -08:00
Chinmay Garde
602a35617a Update flutter start for iOS simulator 2016-01-15 11:51:45 -08:00
Chinmay Garde
02f423f5d3 Minor: Remove unnecessary continue 2016-01-15 11:51:45 -08:00
Chinmay Garde
e98b7f4c48 Make picking of either an iOS or Android device from a configuration follow a common code path 2016-01-15 11:51:45 -08:00
Chinmay Garde
53ea61942b Invoke Device::startApp on the specific device 2016-01-15 11:51:45 -08:00
Chinmay Garde
fbef955cb9 Update IOSDevice::startApp for precompilation 2016-01-15 11:51:45 -08:00
Chinmay Garde
b7e388c5dd Allow preconfigured packages for iOS simulator and devices 2016-01-15 11:51:45 -08:00
Chinmay Garde
9fd1711b43 Add configurations for prebuilt iOS and iOS simulator targets 2016-01-15 11:51:45 -08:00
Hans Muller
3782189169 Merge pull request #1259 from HansMuller/progress_indicator
Update progress_indicator widget example

Update the progress_indicator demo: it was using Title explicitly, which is no longer needed.

Defend against a null color in updateTaskDescription. The color field in the TaskDescription struct (activity.mojom) isn't nullable.

Fixes #1248
2016-01-15 08:50:48 -08:00
Hans Muller
179ca8164e Upgrade progress_indicator demo defend against null color in updateTaskDescription 2016-01-15 08:41:57 -08:00
Ian Hickson
8c44c38299 Include BoxDecoration description in Container toString
Have BoxDecoration default to one-line dumps

Style nits in a rendering example
2016-01-14 22:20:43 -08:00
Ian Hickson
abb17ea93f Merge pull request #1237 from Hixie/tooltips
Tooltips
2016-01-14 12:44:17 -08:00
Hixie
24cab8999c Tooltips
Introduces a new Tooltip class.
Adds support for tooltips to IconButton and Scaffold.
Adds some tooltips to various demos.

Also some tweaks to stack.dart that I made before I decided not to go
down a "CustomPositioned" route.
2016-01-14 12:21:56 -08:00
Adam Barth
28d4e52a06 Update engine 2016-01-14 12:02:11 -08:00
Adam Barth
6d7bf20fcf Merge pull request #1243 from abarth/edge_trigger
Stocks has both tabs reified in the wiget tree
2016-01-14 11:24:04 -08:00
Hans Muller
675f4c4d2a Merge pull request #1240 from HansMuller/page_storage
PageStorage storage identifier should include the context widget's key
2016-01-14 10:33:17 -08:00
Adam Barth
b5ed355b93 Stocks has both tabs reified in the wiget tree
We were recomputing which widgets to show only when we were on the other side
of the repaint boundaries. That doesn't work well for pageable lists because we
come to rest exactly on a repaint boundary, which means we don't cull the other
page.

After this patch, we recompute the set of widgets using an edge-trigger when we
hit the boundary. That's better than using a level-trigger so that we don't
continuously recompute the set of widget as we sit at the boundary.
2016-01-14 10:19:05 -08:00
Adam Barth
1c292d68d9 Merge pull request #1241 from abarth/stock_data
Switch back to GitHub hosting of stock data
2016-01-14 09:54:58 -08:00
Adam Barth
174164bc15 Switch back to GitHub hosting of stock data
The Firebase server seems to have changed behavior and is not giving us a List
instead of a Map. This patch switches us back to GitHub, which just serves the
same flat files all the time.
2016-01-14 09:37:43 -08:00