Commit Graph

18842 Commits

Author SHA1 Message Date
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
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
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
Collin Jackson
32afb4a8b3 Remove Firebase Flutter package (moving to separate repo) 2016-01-15 13:52:32 -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
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
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
Hans Muller
568fa07e17 PageStorage storage identifier should include the context widgets key 2016-01-14 09:35:39 -08:00
Devon Carew
9aa39192a9 add a test for flutter_sprites 2016-01-14 09:13:44 -08:00
Devon Carew
f6518a6254 remove the flutter_sprites/lib/src/sound_manager.dart library 2016-01-14 09:07:25 -08:00
Ian Hickson
a54ee77b88 Tweaks near Material, BoxDecoration, implicit animations.
Some more asserts and toString info.
Reorder some code to group lerp-related functions.
2016-01-13 18:53:56 -08:00
Seth Ladd
4507a7fa7b Merge pull request #1228 from sethladd/moarhelptext
clarify that start defaults to checked
2016-01-13 16:35:25 -08:00
Adam Barth
742567e374 Rev engine 2016-01-13 15:58:48 -08:00
Adam Barth
15eeb7f57d Merge pull request #1235 from abarth/handle_degenerate_transforms
Handle degenerate transforms better
2016-01-13 11:21:06 -08:00
Adam Barth
192c6e24c3 Handle degenerate transforms better
No you can't hit things inside degenerate transforms. Tranforming from global
coordaintes to degenerate local coordinates gives you Point.origin. Also,
upgrade vector_math to get a better invert constructor.

Fixes #1161
Fixes #1224
2016-01-13 11:14:46 -08:00
Adam Barth
193ed22b63 Merge pull request #1197 from abarth/rm_clamp
Remove clamp() in favour of double.clamp()
2016-01-13 11:01:41 -08:00
Seth Ladd
59fde0b45c clarify that start defaults to checked 2016-01-13 08:53:46 -08:00
Devon Carew
babfb0ac4f Merge pull request #1215 from devoncarew/dev_analysis
fixes to flutter analyze for the latest dev sdk
2016-01-12 20:18:41 -08:00
Devon Carew
4ad838f65b don't listen for chromium messages to the adb log 2016-01-12 19:09:12 -08:00
Devon Carew
0f55ebe503 fixes to flutter analyze for the latest dev sdk 2016-01-12 19:04:19 -08:00
Eric Seidel
9257682b01 Remove stray period added from web editor. 2016-01-12 17:09:15 -08:00
Eric Seidel
a6e8fccb90 Correct display error for flutter analyze timing
Fixes #1213.
2016-01-12 17:08:38 -08:00
Adam Barth
d444ae7dc8 Update engine
Also, update callers of deprecated methods.
2016-01-12 12:24:07 -08:00
Hans Muller
ed121703a5 Merge pull request #1190 from HansMuller/fab_switch
Floating Action Button transitions

When the scaffold's floating action button (FAB) is replaced the old FAB shrinks to zero and then the new one grows to its full size. When a FAB is shown, its child spins into place.

This is all intended to be a good approximation of the "Lateral Screens" section of the material design spec.

The fab.dart example is included as stop gap until the gallery and other demos have been updated.
2016-01-12 11:50:47 -08:00
Hans Muller
cafea7f51f Floating Action Button transitions 2016-01-12 11:42:20 -08:00
Seth Ladd
42d90c00cc starter app now has a button that does something 2016-01-12 10:28:40 -08:00
Adam Barth
84957e5be8 Fix time picker
We were painting the contents of the RRect clip at the wrong offset. This patch
makes RRect match Rect and Path clips.

Fixes #1194
2016-01-12 10:07:09 -08:00
Eric Seidel
001c107858 Teach analyze how to print out the total time spent
Makes it more obvious that flutter analyze takes a long time.

@Hixie
2016-01-12 09:20:36 -08:00
Adam Barth
8e5dd7a385 Remove clamp() in favour of double.clamp()
Fixes #961
2016-01-12 09:19:33 -08:00
Ian Hickson
867bbcc9bd Provide a safe time to update a WidgetToRenderBoxAdapter
If you change the RenderObject tree between frames, you'll assert if
you subsequently hit test. So e.g. if you get two button presses back
to back, and you mutate the tree synchronously in response to the
first one, the second will assert.

This adds an onBuild callback to WidgetToRenderBoxAdapter to make it
easier to do the updates at the right time, i.e., during widget build.
It'll be called whenever you rebuild the WidgetToRenderBoxAdapter
itself, so all you have to do to use it is call setState() on whoever
is building the WidgetToRenderBoxAdapter.
2016-01-11 23:14:37 -08:00
Adam Barth
f10f79f8fd Merge pull request #1196 from abarth/rm_layer_bounds
Stop passing bogus bounds to SceneBuilder
2016-01-11 22:29:09 -08:00
Ian Hickson
e20ec39b81 Merge pull request #1195 from Hixie/raised-button
Fixed the RaisedButton shadow issue
2016-01-11 22:23:23 -08:00