Commit Graph

18842 Commits

Author SHA1 Message Date
Hixie
7138a37293 Debugging aids for overlays, performances 2015-12-07 14:42:42 -08:00
Adam Barth
e80756d669 Merge pull request #748 from abarth/inital_performance
The intial route shouldn't run its entrance animation
2015-12-07 13:24:37 -08:00
Adam Barth
0f4ef5a79a Versioning 2015-12-07 13:23:47 -08:00
Adam Barth
ba936c0f0b The intial route shouldn't run its entrance animation
Instead, it should enter the world fully formed.
2015-12-07 11:11:03 -08:00
Adam Barth
73e62d386b Merge pull request #779 from abarth/basic_docs
Add some dartdoc to basic widgets
2015-12-07 10:57:00 -08:00
Hixie
7243c5629c Got the check the wrong way in the last patch.
TBR @abarth
2015-12-07 10:44:19 -08:00
Ian Hickson
d6f61e44c3 Merge pull request #784 from Hixie/pointer-move-hack
Ignore hover events.
2015-12-07 10:29:42 -08:00
Adam Barth
069fc6dd8b Add some dartdoc to basic widgets
These docs are largely duplicated from the cooresponding rendering classes. I'm
not sure how we can avoid repeating ourselves.
2015-12-07 10:27:53 -08:00
Viktor Lidholt
1e683b2f61 Merge pull request #704 from vlidholt/master
Fixes issue with physics debug drawing in sprites
2015-12-07 10:22:25 -08:00
Hixie
aabae3af82 Ignore hover events. 2015-12-07 10:15:11 -08:00
Adam Barth
1d8bea0ab2 Merge pull request #783 from abarth/mimic_mark_needs_build
Expose markNeedsBuild on MimicOverlayEntry
2015-12-07 10:01:46 -08:00
Adam Barth
23776e7e7c Expose markNeedsBuild on MimicOverlayEntry
We expose this function on OverlayEntry to let you drive animations in the
overlay. The same use case applies to MimicOverlayEntry.
2015-12-07 09:50:50 -08:00
Hixie
f3a65d0626 Export the new pointer event classes. 2015-12-07 09:12:28 -08:00
Adam Barth
2f3baf14b3 Parent data fixes
Add some missing functionality to ParentData subclasses.

Fixes #474
2015-12-06 21:34:41 -08:00
Adam Barth
e46f480733 Repeated background images should be clipped to the container
Fixes #766
2015-12-05 10:50:23 -08:00
Adam Barth
3419b3e493 Merge pull request #764 from abarth/material_page_completer
Add a completer to MaterialPageRoute
2015-12-05 10:17:53 -08:00
Adam Barth
616c6d7918 LayoutId should default to using its id as its key
This default seems likely to be benefitial because typically the LayoutIds
coorespond to semantic slots in a bespoke layout.
2015-12-05 09:06:36 -08:00
Adam Barth
5ea4990c51 Add a completer to MaterialPageRoute
Fixes #608
2015-12-05 01:43:05 -08:00
Adam Barth
e7c05e5781 Popup menu splash doesn't go to edge
Now the splash goes to the edge. Also, fold popup_menu_item.dart into
popup_menu.dart for simplicity.

Fixes #266
2015-12-05 01:21:07 -08:00
Adam Barth
503218cd40 Merge pull request #762 from abarth/image_repeat
Implement ImageRepeat
2015-12-05 01:12:43 -08:00
Adam Barth
9c00bc5378 Implement ImageRepeat
Fixes #158
2015-12-05 00:42:15 -08:00
Ian Hickson
2965dcb61f Cleanup for the Pointer changes. 2015-12-05 00:31:27 -08:00
Ian Hickson
f162555648 PointerInput refactor
Instead of PointerInputEvent having a "type" field, we now have a
different class for each pointer type.

This has ripple effects throughout the system.

I also did code cleanup in affected files while I was there.
2015-12-04 22:42:38 -08:00
Adam Barth
bc1b47e917 Merge pull request #755 from abarth/rm_painting_canvas
Remove PaintingCanvas
2015-12-04 21:23:49 -08:00
Adam Barth
abf0359569 Remove PaintingCanvas
We can just use Canvas now.  The two are the same thing.
2015-12-04 20:26:08 -08:00
Adam Barth
40bc9e65da Remove outdated radial_reaction.dart
We now draw radial reactions using Material.
2015-12-04 20:20:29 -08:00
Ian Hickson
b6cf053e89 Merge pull request #752 from Hixie/yak3-remove-timing
Replace AnimationTiming with CurvedPerformance
2015-12-04 18:09:58 -08:00
Hixie
379b6a50f2 Replace AnimationTiming with CurvedPerformance
Also, replace places that use the term "create performance" with
"create performance controller".
2015-12-04 17:42:09 -08:00
Hixie
21ec20e947 MeanPerformance 2015-12-04 16:57:29 -08:00
Hixie
4ba074f690 Refactor PerformanceView listeners.
Primarily, this rearranges how listeners are handled internally by the
various PerformanceView classes so that there's not so much redundancy.

It also fixes ReversePerformance and ProxyPerformance to not leak.
Previously, they never unhooked their listeners, so they'd leak until
the entire chain of performances was killed. Now, they unhook as soon as
they themselves have no listeners left, which is more idiomatic.
2015-12-04 16:10:11 -08:00
Adam Barth
0d6a564aec Merge pull request #747 from abarth/null_assert
Improve the asset for build functions that return null
2015-12-04 15:03:48 -08:00
Ian Hickson
f1b01f9a46 Merge pull request #746 from Hixie/homogeneous-fixes
Add more asserts to help catch the blackness bug
2015-12-04 14:51:24 -08:00
Adam Barth
59c3ecdcc6 Improve the asset for build functions that return null
Fixes #689
2015-12-04 14:47:51 -08:00
Hixie
d4f3d0a072 Add more asserts to help catch the blackness bug 2015-12-04 14:32:56 -08:00
Collin Jackson
c253ca627b Support for hero transitions underneath a PageRoute 2015-12-04 14:26:31 -08:00
Collin Jackson
fa31a4ad37 Move HeroController into heroes.dart and PageRoute into pages.dart 2015-12-04 13:33:18 -08:00
Hixie
a83eadccc0 Refactor forward transition building
Instead of separate functions for the 0->1 and 1->2 transitions, just
have one function.
2015-12-04 13:07:24 -08:00
Adam Barth
42eafce04a Merge pull request #740 from abarth/custom_layout_assert
MultiChildLayoutDelegate should assert that all children have had layoutChild called exactly once
2015-12-04 12:50:14 -08:00
Adam Barth
b83187d8f3 MultiChildLayoutDelegate should assert that all children have had layoutChild called exactly once
Fixes #692
Fixes #690
2015-12-04 12:31:58 -08:00
Hixie
4789ee36c3 BuilderTransition no longer requires variables
Sometimes you want to just make a transition driven straight from the
performance's progress, rather than with an explicit variable.
2015-12-04 12:10:41 -08:00
Adam Barth
eaab8fa18f Merge pull request #735 from abarth/custom_clip
Add custom clipping to ClipRect and ClipOval
2015-12-04 11:31:47 -08:00
Adam Barth
975997113b Merge pull request #734 from abarth/foreground_painter
Add the ability to custom paint foregrounds
2015-12-04 11:28:08 -08:00
Adam Barth
f66726609d Add custom clipping to ClipRect and ClipOval 2015-12-04 11:26:34 -08:00
Hixie
6c3459e0b6 Slider Improvements
Have the widget support min/max arguments to make the widget easier to
use. Also, fix the dragging so it's actually where the knob is.
2015-12-04 11:23:16 -08:00
Adam Barth
2a9de0aa97 Add the ability to custom paint foregrounds 2015-12-04 11:21:55 -08:00
Adam Barth
0608a02a97 Improve material ink response
This patch contains a number of improvements to the material ink response:

- The ink response now remains until you lift your finger
- When disappearing, the ink response now fades out
- The ink response is now the correct color (at least in the light theme)
- The ink response for IconButton now has a (circular) highlight
- The ink response for IconButton now repositions itself to be centered on the highlight

In addition, I've adjusted the various animation parameters to better match the
behavior of ink responses in the Java implementation of material.

Fixes #695
2015-12-04 00:17:12 -08:00
Ian Hickson
dc90783050 Merge pull request #718 from Hixie/core-basics
Introduce some basic utility classes.
2015-12-03 20:11:11 -08:00
Ian Hickson
c5a26615d8 Introduce some basic utility classes.
One might argue, the most basic utility classes.
2015-12-03 20:03:31 -08:00
Ian Hickson
0290622bc6 Analyzer improvements
- strengthen analyzer against error messages that point past the
  bottom of the file.

- ignore any errors in intl's auto-generated files.
2015-12-03 19:52:23 -08:00
Adam Barth
2b47efc906 Merge pull request #716 from abarth/auto_menu
Automatically fill in the menu button when there's a drawer
2015-12-03 16:37:44 -08:00