Adam Barth
426ce9374e
Clean up some style in GestureDetector
...
* Rename GestureTapListener (and friends) To GestureTapCallback to match the
other gesture callbacks.
* Replace "ensureFoo" pattern with ??= operator.
2015-10-02 23:50:23 -07:00
Adam Barth
e9aabcd5c6
Use }) : super
consistently
...
Fixes #1372
2015-10-02 23:12:03 -07:00
Adam Barth
7271698496
Merge pull request #1458 from Hixie/dismiss-1215
...
Regression test for #1215
2015-10-02 23:05:57 -07:00
Adam Barth
aea7792912
Merge pull request #1467 from Hixie/app-help
...
Assert that App(routes) is not null.
2015-10-02 23:05:39 -07:00
Hans Muller
4de0a99b3f
ShaderMask
...
The ShaderMask widget enables rendering its child with an alpha channel defined by a Shader. For example if the Shader was a linear gradient in alpha then the component behind the ShaderMask's child would appear wherever the gradient's alpha value was not fully opaque.
The card_collection.dart example demonstrates this. Select the "Let the sun shine" checkbox in the app's drawer.
2015-10-02 17:08:00 -07:00
Adam Barth
274d2986fe
Merge pull request #1463 from abarth/animated_container
...
Add AnimatedContainer
2015-10-02 16:34:32 -07:00
Adam Barth
c88ca5dbdc
Add AnimatedContainer
...
This widget is used in Material and Drawer. We don't currently support
animating towards null, but we can add that in a future patch.
2015-10-02 15:53:12 -07:00
Adam Barth
8faa778952
Merge pull request #1468 from abarth/pan_crash
...
Detecting just Pan events causes an exception in GestureDetector
2015-10-02 15:45:21 -07:00
Adam Barth
56c8e60b04
Detecting just Pan events causes an exception in GestureDetector
...
Fixes #1320
2015-10-02 15:36:41 -07:00
Hixie
cf0fe5faf9
Assert that App(routes) is not null.
...
This is probably a sign that you're using fn2 still.
2015-10-02 15:28:07 -07:00
Viktor Lidholt
75f10ba619
Updates work with latest Flutter changes
2015-10-02 15:10:02 -07:00
Viktor Lidholt
48a6cd839a
Sprite physics, first iteration
2015-10-02 14:15:14 -07:00
Ian Hickson
6fcdb64a1a
Merge pull request #1455 from Hixie/heroes2
...
Groundwork for heroes transition in Stocks app
2015-10-02 11:24:06 -07:00
Hixie
846a073ab9
Regression test for #1215
...
I'm not sure this specific incarnation of the test ever crashed, since
the original test depended on user interaction and now works fine, but
just in case, here's a regression test for it so I can close that issue.
This also slightly changes the Widget.toString() output to include the
key since that will make debugging easier.
2015-10-02 11:22:16 -07:00
Hixie
6baf162a1d
Default RenderBox.size to null.
2015-10-02 10:31:14 -07:00
Hixie
7734c0b0e0
Groundwork for heroes transition in Stocks app
...
Identify specific parts of a Stock row with a Global Key that can be
regenerated later, and pass that key back to event handlers so they can
use them to do the transition.
2015-10-02 10:20:08 -07:00
Andrew Wilson
e9f27245b5
Merge pull request #1448 from apwilson/curve
...
Add fast-out-slow-in Material-Design-style curve.
2015-10-01 17:19:38 -07:00
Ian Hickson
9a54c1bc7f
Merge pull request #1449 from Hixie/drag-offset
...
Draggable offsets and fix default drag feedback
2015-10-01 17:13:18 -07:00
Adam Barth
97eaee3484
Merge pull request #1447 from abarth/reactivate
...
GlobalKeys should preserve state across tree mutations
2015-10-01 17:13:16 -07:00
Hixie
894a1ca09f
Draggable offsets and fix default drag feedback
...
You can now set an offset that will be used for the hit testing for
drops. (It doesn't move the feedback by default; use a Transform for
that.) I also made the default feedback not be Opacity 0.5 always.
2015-10-01 17:13:03 -07:00
Ian Hickson
dd6790fc60
Merge pull request #1446 from Hixie/fractionally_sized_box
...
FractionallySizedBox
2015-10-01 17:12:13 -07:00
Adam Barth
f31f067eef
GlobalKeys should preserve state across tree mutations
...
This patch causes widgets with global keys to drag their state (including their
children) with them as they travel through the element tree.
2015-10-01 17:08:05 -07:00
Andrew Wilson
8f4f3168d7
Add fast-out-slow-in Material-Design-style curve.
2015-10-01 16:46:51 -07:00
Adam Barth
eb2d5158d6
Rev pub package
2015-10-01 15:47:01 -07:00
Hixie
c07cd697ed
FractionallySizedBox
2015-10-01 15:41:14 -07:00
Adam Barth
f2b28e55b8
Merge pull request #1444 from abarth/float64
...
Moves from vector_math to vector_math_64
2015-10-01 15:37:20 -07:00
Hixie
ce2c56b35c
EdgeDims changes and other fixes to core classes.
...
- Rename EdgeDims constructor to EdgeDims.TRBL().
- Add operator== to Size and Offset so that you can compare Size to
DebugSize in checked mode.
- Add Size.lerp().
- Add various operators to EdgeDims. (*, /, ~/, %)
- Add EdgeDims.lerp().
- Update style guide. I went there to fix an EdgeDims constructor
example, and stayed because some recent things came up and I wanted to
add them before I forgot.
2015-10-01 15:34:04 -07:00
Adam Barth
7662a30f85
Moves from vector_math to vector_math_64
...
* Moves from vector_math to vector_math_64
* Adds support for Float64List in Dart bindings
2015-10-01 14:46:13 -07:00
Adam Barth
4ebf26bfaa
Merge pull request #1441 from abarth/delay_finalization
...
Delay unmounting elements until the end of the frame
2015-10-01 14:43:07 -07:00
Adam Barth
0b542d5cc5
Delay unmounting elements until the end of the frame
...
This patch prepares us to move these elements around in the tree.
2015-10-01 14:28:36 -07:00
Hixie
94f910d8b4
Stocks app used RouteState, now renamed StateRoute
2015-10-01 13:31:18 -07:00
Ian Hickson
be72f3335f
Merge pull request #1440 from Hixie/createState
...
Assert that the widget is the T in State<T>
2015-10-01 13:25:22 -07:00
Collin Jackson
603e1efbb4
Merge pull request #1434 from collinjackson/decode_lists
...
Support for decoding images in lists
2015-10-01 13:24:08 -07:00
Ian Hickson
ab8aeff8ee
Merge pull request #1439 from Hixie/heroes1
...
Heroes: Pass next Performance to route builders
2015-10-01 13:22:56 -07:00
Ian Hickson
434a36be27
Merge pull request #1438 from Hixie/state_route
...
Rename RouteState to StateRoute
2015-10-01 13:22:51 -07:00
Ian Hickson
eda8792542
Merge pull request #1437 from Hixie/mixed_viewport_demo
...
Remove the mixed_viewport demo
2015-10-01 13:22:45 -07:00
Hixie
834165448b
Assert that the widget is the T in State<T>
...
Mostly because we can, but hopefully it'll catch someone who
accidentally copypasted their createState method.
2015-10-01 13:20:47 -07:00
Collin Jackson
a995092c0a
Fix spinning_image URL to one that works
2015-10-01 13:16:53 -07:00
Collin Jackson
3a912de958
Use PrivateDart for ImageDecoder constructors
2015-10-01 13:16:30 -07:00
Hixie
8cce992f26
Heroes: Pass next Performance to route builders
...
This is step 1 in making it possible to have hero transitions between
routes. To make it possible for a route to have an "exit" animation when
a new route has been pushed on top of it, we provide the next route's
AnimationPerformance to the build function. It's null if there is no
next route or if the next route has no performance.
2015-10-01 13:11:01 -07:00
Hixie
927edaac48
Rename RouteState to StateRoute
...
...for consistency with the other Route subclasses:
```
dialog.dart: class DialogRoute extends Route
drag_target.dart: class DragRoute extends Route
navigator.dart: class PageRoute extends Route
navigator.dart: class StateRoute extends Route
popup_menu.dart: class MenuRoute extends Route
```
2015-10-01 12:57:20 -07:00
Hixie
13ffcaff2f
Remove the mixed_viewport demo
...
It's redundant with card_collection.dart, which does similar things but
much better.
2015-10-01 12:53:34 -07:00
Hixie
4d186e3c28
Port overlay_geometry.dart demo.
...
This removes GlobalKey.currentElement in favour of GlobalKey.currentContext.
2015-10-01 12:50:49 -07:00
Collin Jackson
6d689c6c08
Support for decoding images in lists
2015-10-01 11:06:11 -07:00
Adam Barth
fbd5460b04
Integrate WidgetTester with FakeAsync
...
Fixes #1084
2015-10-01 10:56:58 -07:00
Adam Barth
67feb40cb5
Update playfair to a version that supports fn3
2015-10-01 09:54:31 -07:00
Adam Barth
45c906d2ad
Make fn3 the default widget framework
2015-10-01 09:48:35 -07:00
Adam Barth
9fe747e409
Remove unused imports
2015-10-01 09:30:31 -07:00
Ian Hickson
3d788f3d79
Merge pull request #1426 from flutter/boxconstraints
...
BoxConstraints trivial cleanup
2015-10-01 09:29:29 -07:00
Ian Hickson
0533946b82
Merge pull request #1427 from flutter/basic
...
Keep the two ConstrainedBox classes together
2015-10-01 09:29:25 -07:00