1244 Commits

Author SHA1 Message Date
Adam Barth
017b4230ed Merge pull request #2358 from abarth/update_engine
Update engine
2016-03-02 18:40:48 -08:00
Adam Barth
865e3cc0ce Update engine
This change brings in a new version of Mojo, which has improved Mozart
interfaces.
2016-03-02 18:32:49 -08:00
Hans Muller
2fe456bf95 Merge pull request #2360 from HansMuller/fix_icon
Fix Icon opacity handling
2016-03-02 16:48:05 -08:00
krisgiesing
59ba45ef4d Merge pull request #2359 from krisgiesing/scaling_quality
Use bilinear interpolation when scaling images
2016-03-02 16:34:28 -08:00
Hans Muller
447da939b0 fix Icon alpha handling 2016-03-02 16:33:25 -08:00
Kris Giesing
125c0673f3 Use bilinear interpolation when scaling images
Fixes #2337
2016-03-02 16:20:28 -08:00
Hans Muller
4eae547c87 Fixed tab scrolling 2016-03-02 16:06:40 -08:00
Hixie
c7c730d0c0 Hide icons in the accessibility tree. 2016-03-02 14:26:52 -08:00
Adam Barth
c51ae28d87 Add "form" parameter to AnimationController forward and reverse
Fixes #2324
2016-03-02 12:05:16 -08:00
Adam Barth
bfc39aa843 Remove IconThemeColor
This enum doesn't make sense anymore now that we can arbitrarily colorize
icons.  Instead, we just use a Color, which is both simpler and can be
interpolated during animations.

Fixes #1279
2016-03-02 10:11:42 -08:00
Hixie
cb5017d17d Convert LinearGradient and RadialGradient to fractional units
Makes it easier to use without a SizeObserver
2016-03-02 09:56:37 -08:00
Adam Barth
870894fc68 Switch Material Design icons to using the iconfont
Rather than managing all the Material Design icons manually, we now
manage them using an icon font. The icon font contains glyphs for each
icon in an efficient vector format.

This patch updates the FLX tooling to include the MaterialIcons font and
updates the Icon widget to use the font instead of asset images.

Fixes #2313
Fixes #2218
Fixes #2009
Fixes #994
2016-03-02 09:32:02 -08:00
Hans Muller
d8eaac42fb Added menu dividers 2016-03-02 08:45:26 -08:00
Adam Barth
7a2d82d0af Merge pull request #2301 from abarth/dotdot_pattern
updateRenderObject() methods should use the .. pattern
2016-03-01 14:39:11 -08:00
Ian Hickson
2c78c06136 Fix dump debugging tools 2016-03-01 13:59:58 -08:00
Hans Muller
69f9e3b2a9 Added ListItem dividers 2016-03-01 13:07:37 -08:00
Adam Barth
ac1cba59ca updateRenderObject() methods should use the .. pattern
Fixes #1381
2016-03-01 13:03:29 -08:00
Adam Barth
96246c1a04 Improve the error message when calling setState during build
Now we produce an error message that explains why this operation isn't
permitted by the framework.

Fixes #1925
2016-03-01 11:08:19 -08:00
Adam Barth
08de980a5a Minor improvements to AnimationController
* Makes repeat default to the lower and upper bounds
* Makes animateTo handle unbounded ranges better
* Improve the name of _TweenSimulation

Fixes #2096
Fixes #2090
Fixes #2091
2016-02-29 16:56:25 -08:00
Hixie
ff8d60c8dd Point Stack users to CustomMultiChildLayout. 2016-02-29 14:28:20 -08:00
Hixie
438f209088 SizeObserver crusade: ScrollableMixedWidgetListState 2016-02-26 18:40:05 -08:00
Ian Hickson
f6bd20ff64 Merge pull request #2241 from Hixie/size-obs-8
SizeObserver crusade: Mimcable
2016-02-26 16:57:17 -08:00
Hans Muller
0dd7285d4e Merge pull request #2239 from HansMuller/icon
Disabled IconButtons render correctly
2016-02-26 16:52:14 -08:00
Hixie
157ac75248 SizeObserver crusade: Mimcable 2016-02-26 16:48:46 -08:00
Adam Barth
fc564f0c44 Merge pull request #2238 from abarth/rm_animation_direction
Remove AnimationDirection
2016-02-26 16:46:53 -08:00
Ian Hickson
d998edd366 Merge pull request #2236 from Hixie/raw-gesture-detector-assert
Fix crash in Block.
2016-02-26 16:41:15 -08:00
Adam Barth
6f7ceff048 Merge pull request #2235 from abarth/animation_status
Elide fewer AnimationStatus callbacks
2016-02-26 16:36:04 -08:00
Hans Muller
faf55dda79 Disabled IconButtons render correctly 2016-02-26 16:33:05 -08:00
Adam Barth
3bbeee7b54 Remove AnimationDirection
This concept is now private to AnimationController. All the clients actually
want the AnimationStatus.
2016-02-26 16:32:42 -08:00
Adam Barth
25ab5555b7 Elide fewer AnimationStatus callbacks
Previously we would elide forward and reverse callbacks that canceled each
other out, which broke the expected state machine. Now we synchronously deliver
status callbacks when start an animation.

Fixes #1913
2016-02-26 16:29:14 -08:00
Hans Muller
8cb9ef70fa tabs 2016-02-26 16:03:05 -08:00
Hixie
fcb3071936 Fix crash in Block.
This assert was overzealous. You can update a RawGestureDetector any
time before the semantics phase, it doesn't have to only be during your
child's layout.

This is good because Block has additional PointerListeners between its
GestureDetector and its Viewport.
2016-02-26 15:56:40 -08:00
Ian Hickson
13b8777f89 Merge pull request #2230 from Hixie/size-obs-7
SizeObserver crusade: Heroes
2016-02-26 15:47:39 -08:00
Adam Barth
6ecbd548c4 Merge pull request #2227 from abarth/scroll_events
Scrollable's callbacks should follow a state machine
2016-02-26 14:47:53 -08:00
Adam Barth
c629006748 Scrollable's callbacks should follow a state machine
Now onScroll callbacks are always bracketed by onScrollStart and onScrollEnd
callbacks.

Fixes #1822
2016-02-26 14:39:50 -08:00
Ian Hickson
0f92316bea Merge pull request #2223 from Hixie/size-obs-6
SizeObserver crusade: Remove EnterExitTransition
2016-02-26 14:26:29 -08:00
Hans Muller
8edeecbcd0 Merge pull request #2216 from HansMuller/stocks_demo
Add CheckedPopupMenuitem, update the Stocks demo
2016-02-26 14:04:56 -08:00
Hixie
8f2ef23736 SizeObserver crusade: Heroes
Somehow this actually made heroes way simpler.
2016-02-26 13:56:55 -08:00
Adam Barth
11fa94cd6b Simplify demo template
We don't need these keys. Also, improve style in several places.

Fixes #2225
2016-02-26 13:42:25 -08:00
Hans Muller
3d377305f4 updated per review feedback 2016-02-26 13:13:46 -08:00
Hixie
f7d493b65b SizeObserver crusade: Remove EnterExitTransition
...and friends.
2016-02-26 12:55:52 -08:00
Hans Muller
179d41e68f Add CheckedPopupMenuitem, update the Stocks demo 2016-02-26 11:27:44 -08:00
Hixie
be865e1e1a SizeObserver crusade: RawInputLine 2016-02-26 10:17:47 -08:00
Hans Muller
f1df2bd7c0 Gallery Menu Demo etc 2016-02-25 16:16:44 -08:00
Hixie
a78d2c9e8b SizeObserver crusade: Dismissable
Refactor Dismissable to not need a SizeObserver and to generally tighten
up the code a bit.
2016-02-25 14:02:49 -08:00
Hixie
f808055756 Remove size observers from scrollables.
Also:
 - add operator==/hashCode/toString to ViewportDimensions
 - add toString to BindingBase
 - add toString and debugFillDescription to ScrollBehavior
 - fix a bug in the RawGestureDetectorState's replaceGestureRecognizers
 - rename MixedViewport's onExtentsUpdate to onExtentChanged
 - replace ExtentsUpdateCallback with ValueChanged<double>
 - remove a microtask for dispatching scroll start, since it
   did not appear to have any purpose
 - added dartdocs to Instrumentation until I understood it
 - made all event dispatch in Instrumentation drain microtasks
2016-02-25 10:55:12 -08:00
Andrew Wilson
203415771e And inverted and reversed curves. 2016-02-25 10:28:43 -08:00
Adam Barth
4b1a9ff14c Remove PointerRouter and GestureArena arguments
There's no reason to make clients supply a PointerRounter and a
GestureArena when constructing gesture recognizers. These objects are
statics and the gesture recognizers can just grab them directly.

Also, remove the callback constructor arguments. Almost no code used
them. Instead, people seem to prefer using the `..` operator to set
callbacks on the recognizers. Removing the arguments removes a bunch of
boilerplate.
2016-02-24 22:23:00 -08:00
Adam Barth
9d4e0e8551 Merge pull request #2142 from abarth/interactive_text
Add the ability to recognize gestures on text spans
2016-02-24 17:32:30 -08:00
Hixie
512b2e1972 Fix move() to call markNeedsLayout().
Otherwise, changing the order of your children (e.g. shuffling a list of
children) will have no visible effect.
2016-02-24 17:10:59 -08:00