2040 Commits

Author SHA1 Message Date
Adam Barth
3fc05b79aa Make TapTracker and TapGesture private classes
We don't want to expose these from the gesture package. This patch moves
DoubleTapGestureRecognizer into tap.dart so we can make TapTracker and
TapGesture private to that file.
2015-10-27 10:08:48 -07:00
Ian Hickson
93622ebd41 Merge pull request #1819 from Hixie/new-enabled-approach
Use the presence of handler to determine 'enabled'
2015-10-27 09:30:34 -07:00
Adam Barth
f35ad64786 Merge pull request #1814 from abarth/fix_right_align
Right-aligned text paints offscreen sometimes
2015-10-26 19:41:24 -07:00
Hixie
d11acc41eb Use the presence of handler to determine 'enabled'
Instread of an explicit 'enabled' bool, this uses the presence of the
event handler to determine if a widget is enabled or not. This means
that if you've not passed a handler, your widget will be disabled, which
makes sense, since it wouldn't work anyway.

Adds this feature to checkbox, and ports raised button, flat button, and
radio buttons to this new model.

Adds a checkbox to card_collection that can be disabled.

Hide a (basically bogus) hint from the (soon to be disabled) strong hint
mode in the analyzer that this reveals.
2015-10-26 17:35:41 -07:00
Hixie
a13147d04f Make ink wells animate their highlight. 2015-10-26 17:24:14 -07:00
Viktor Lidholt
ddd4ea81ec Fixes inferred type warning 2015-10-26 16:38:14 -07:00
Viktor Lidholt
9e8f901b04 Fixes inferred type warning 2015-10-26 16:32:57 -07:00
Viktor Lidholt
0d61e50119 Fixes warning in sprites 2015-10-26 16:26:48 -07:00
Viktor Lidholt
2f07811d45 Merge pull request #1800 from vlidholt/master
sprite nodes now caches inverse transforms
2015-10-26 15:53:38 -07:00
Viktor Lidholt
957061e9ab Adds support for collision categories and masks in sprite physics 2015-10-26 15:49:50 -07:00
Adam Barth
69a0689a33 Right-aligned text paints offscreen sometimes
We were assuming that the text extended from 0.0 to its max content width.
That's not correct for right-aligned text. Instead, we need to layout the text
again at the width we want it to occupy.
2015-10-26 15:49:47 -07:00
krisgiesing
5d374288bc Merge pull request #1809 from krisgiesing/event-fix
Handle mouseover events in pointer event conversion
2015-10-26 15:35:54 -07:00
Kris Giesing
bede2524c6 Handle mouseover events in pointer event conversion
Fixes #1806
2015-10-26 15:29:43 -07:00
Hixie
c87e967052 Radio button 'disabled' state.
Also:
 - give card_collection an option to turn on or off the edit widgets
 - give card_collection an option to control text alignment (when not editing)
 - give card_collection a "dump" option to aid debugging
 - make the gesture detector report which gestures it is listening to
2015-10-26 14:49:58 -07:00
Viktor Lidholt
ac2a8a6601 sprite nodes now caches inverse transforms 2015-10-26 13:53:01 -07:00
krisgiesing
5d0c090d44 Merge pull request #1799 from krisgiesing/tap-fix
Restore previous tap behaviors: no timeout, one pointer
2015-10-26 13:49:23 -07:00
Adam Barth
b1b47435e9 Merge pull request #1798 from abarth/inherit_text_style
Be explicit about whether text styles inherit
2015-10-26 13:42:01 -07:00
Kris Giesing
f2fd5e32a5 Restore previous tap behaviors: no timeout, one pointer
Don't use a timeout to cancel tap tracking. Track only one primary pointer
and ignore non-primary pointers. Update tests to reflect desired behaviors.

Fixes #1779, #1780, #1781.
2015-10-26 13:41:29 -07:00
Viktor Lidholt
4da5aea555 Merge pull request #1797 from vlidholt/master
Adds motors to revolute joints and prismatic joints
2015-10-26 13:28:32 -07:00
Adam Barth
7a811e5ace Be explicit about whether text styles inherit
Now TextStyle has a boolean "inherit" value, which controls whether null values
should use should inherit from the current default text style or whether they
should use their initial values.
2015-10-26 13:25:20 -07:00
Viktor Lidholt
4d76182ba9 Adds motors to revolute joints and prismatic joints 2015-10-26 13:24:08 -07:00
Viktor Lidholt
515d7109ef Removing debug printout 2015-10-26 13:23:33 -07:00
Jason Simmons
7f3b7a6690 Merge pull request #1796 from jason-simmons/input_test_unused_var
Remove an unused variable from input_test
2015-10-26 12:59:41 -07:00
Jason Simmons
6275d75941 Remove an unused variable from input_test 2015-10-26 12:46:28 -07:00
Hixie
fd842810c9 Port ensure_visible.dart to fn3.
This concludes the fn3 port!
2015-10-26 12:44:54 -07:00
Jason Simmons
310ce31891 Merge pull request #1791 from jason-simmons/stocks_example_fetch
In the stock list, filter out any symbols that have not yet been fetched
2015-10-26 12:37:03 -07:00
Ian Hickson
7822bd03ae Merge pull request #1776 from Hixie/stocks-back
Fix Stocks search mode back button.
2015-10-26 12:02:33 -07:00
Ian Hickson
98f2c78e32 Merge pull request #1777 from Hixie/debug-touches
debugPaintPointersEnabled mode
2015-10-26 12:02:27 -07:00
Ian Hickson
6c0635ca64 Merge pull request #1782 from Hixie/gesture-fixes
trivial cleanup in gesture code
2015-10-26 12:02:24 -07:00
Ian Hickson
6684b16599 Merge pull request #1783 from Hixie/better-feedback-for-null-child
better feedback for null child to a Block or Column
2015-10-26 12:02:18 -07:00
Ian Hickson
194255e5f5 Merge pull request #1789 from Hixie/ValueChange
Radio<T> and ValueChanged<T>
2015-10-26 12:02:09 -07:00
Matt Perry
cdcd3de95b Add LICENSE file to flx package. 2015-10-26 14:52:52 -04:00
Matt Perry
80667ded1f Change updater to use shared flx package.
This changes flutter's updater package to depend on and use the new flx
package. I also did a little cleanup of the Bundle interface.
2015-10-26 14:20:32 -04:00
Jason Simmons
194f0f22e3 In the stock list, filter out any symbols that have not yet been fetched
If you load the example and immediately switch to the Portfolio tab, you may
see exceptions due to symbols that are in the portfolio list but whose
data is not yet present in the stocks map
2015-10-26 11:12:08 -07:00
Hixie
b1dbf4528c Radio<T> and ValueChanged<T>
Make Radio widgets take a type that describes the type of their value,
so that you can catch when you use the wrong value.

Standardise on ValueChanged<Foo> instead of having a FooValueChanged
for every value of Foo.
2015-10-26 11:03:24 -07:00
Adam Barth
3154d55ea2 Rev pub packages 2015-10-26 10:42:14 -07:00
Jason Simmons
a09ac6cc8c Merge pull request #1762 from jason-simmons/selection_delete_surround
Keep the selection within bounds in deleteSurroundingText
2015-10-26 09:58:06 -07:00
Ian Hickson
e667b3c097 better feedback for null child to a Block or Column
Fixes #1687.
2015-10-25 20:27:10 -07:00
Ian Hickson
665e665763 trivial cleanup in gesture code 2015-10-25 20:09:20 -07:00
Ian Hickson
a66e55a89c Fix Stocks search mode back button.
Back button wasn't reliably working in checked mode.
2015-10-25 18:31:03 -07:00
Ian Hickson
76381b8f42 debugPaintPointersEnabled mode
Implements a mode that highlights RenderBoxes while events are being
routed through them.

Also, moves the size painting to after paint, so that opaque boxes
don't obscure the debugging lines.
2015-10-25 18:30:52 -07:00
Hixie
a6c473ea95 Strong modeify the examples
This makes skyanalyzer also check the examples, and fixes everything it
found there.
2015-10-23 18:13:25 -07:00
Viktor Lidholt
1dbf9bc891 Fixes issue in sprite node 2015-10-23 16:42:27 -07:00
Jason Simmons
76f83d1de1 Keep the selection within bounds in deleteSurroundingText
If the text is empty, the IME may call deleteSurroundingText(1, 0) if the user
hits the delete key.  The selection should remain at position 0 if this
happens.
2015-10-23 14:55:14 -07:00
Viktor Lidholt
5a481ed554 Merge pull request #1746 from vlidholt/master
Working node to physics world conversions
2015-10-23 13:48:45 -07:00
Viktor Lidholt
68be30e0ec Removes debug printouts in sprite physics 2015-10-23 13:46:19 -07:00
Viktor Lidholt
3708667308 Fixes sprite physics to work correctly with the node graph
Teleportation for physics bodies works again
2015-10-23 13:31:13 -07:00
Jason Simmons
6669aafad7 Merge pull request #1759 from jason-simmons/edit_text_keyboard_flicker
Hide the keyboard in a deferred task.
2015-10-23 12:46:58 -07:00
Adam Barth
375f3247a7 Merge pull request #1761 from abarth/rm_old_text_painter
Delete OldTextPainter
2015-10-23 12:22:19 -07:00
Adam Barth
aa418844ea Delete OldTextPainter
Also, delete all references to DOM APIs.
2015-10-23 12:07:55 -07:00