2592 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
aa418844ea Delete OldTextPainter
Also, delete all references to DOM APIs.
2015-10-23 12:07:55 -07:00
Jason Simmons
6c98721d65 Hide the keyboard in a deferred task.
This is intended to eliminate the flicker that occurs when one widget hides
the keyboard and then another shows it within the same update cycle.
2015-10-23 11:45:28 -07:00
krisgiesing
739fda1af4 Merge pull request #1743 from krisgiesing/doubletap
Fix #1471 Add double tap gesture
2015-10-23 11:31:06 -07:00
Kris Giesing
bf9e21876e Mark field final in double tap recognizer 2015-10-23 11:26:40 -07:00
Kris Giesing
c7ccf256b1 Style tweak in double tap recognizer 2015-10-23 11:25:01 -07:00
Adam Barth
228469bbb7 Enable the new TextPainter 2015-10-23 10:18:49 -07:00
Adam Barth
615445566f Change VelocityTracker to understand new pointer values
Now we use one velocity tracker per pointer.

Path by Kris Giesing.

Fixes #1704
2015-10-23 10:07:19 -07:00
Adam Barth
5ba7a1c7ad Make NewTextPainter actually work
The NewTextPainter is still disabled by default. A future patch will flip the
flag to enable it.

This patch uses a new approach to writing bindings by encoding data into array
buffers. This approach is more efficient than the existing IDL based approach.
If this works out well, we should convert our other performance-sensitive
interfaces to this approach in future patches.
2015-10-23 08:41:23 -07:00
Kris Giesing
c2916f47f9 Add assertions to tap recognizer 2015-10-22 17:30:16 -07:00
Kris Giesing
709b3550a6 Address comments 2015-10-22 17:21:47 -07:00
Adam Barth
54bf20e107 Add DefaultAssetBundle
Now AssetImage will look in the default bundle if you don't supply an explicit
bundle.

Fixes #680
2015-10-22 17:02:42 -07:00
Hans Muller
7ea42642f1 Merge pull request #1745 from HansMuller/stack_alignment
Use FractionalOffset alignment value in Stack and IndexedStack
2015-10-22 15:51:35 -07:00
Hans Muller
6c27d38337 Use FractionalOffset alignment value in Stack and IndexedStack 2015-10-22 15:44:25 -07:00
Hixie
f67bd7d745 Fix size magic
The magic for updating DebugSize's knowledge about whether it was
allowed to be used by the parent or not previously failed to correctly
deal with sizedByParent.
2015-10-22 15:41:24 -07:00
Ian Hickson
dd136c49de Merge pull request #1741 from Hixie/heroes
Unmatched heroes don't need to animate
2015-10-22 15:39:24 -07:00
Hans Muller
d25039df30 Use a type parameter for Dropdown value 2015-10-22 15:14:32 -07:00
Kris Giesing
219e189a18 Merge branch 'master' into doubletap 2015-10-22 15:08:04 -07:00
Hixie
5c439f2b7e Unmatched heroes don't need to animate
By default now heroes won't animate if they don't find a matching hero
on the target page. You can make them animate by setting 'alwaysAnimate:
true' on the Hero constructor.
2015-10-22 14:32:59 -07:00
Hixie
bd9036cdb8 Port spinning_mixed demo to fn3 2015-10-22 14:20:13 -07:00
Hans Muller
33c7820d7e Adds initial versions of DropdownButton DropdownMenuItem
Adds a dropdown menu button as shown in the Material design spec here: https://www.google.com/design/spec/components/buttons.html#buttons-dropdown-buttons. It's the video at the bottom of this section of the Material design spec.

This version of the component doesn't deal with scrollable menus or
constrain the height of the menu.
2015-10-22 13:38:50 -07:00
Adam Barth
de395582d5 Add Navigator.of
Now you don't need to pass the navigator around everywhere.
2015-10-22 12:32:42 -07:00
Jason Simmons
35bd448bdd Merge pull request #1729 from jason-simmons/mixed_viewport_lock
Fix a type mismatch in IconThemeData.operator==
2015-10-21 17:37:05 -07:00
Hixie
fa8c45151f Heroes 2015-10-21 16:58:36 -07:00
Jason Simmons
8288769661 Fix a type mismatch in IconThemeData.operator== 2015-10-21 16:41:18 -07:00
Hixie
9a0b1f815c Export gridpaper.dart 2015-10-21 13:35:41 -07:00
Hixie
4ab0720189 Debug grid over the navigator stack
This grid makes it significantly easier to track down errors when you're
looking at coordinates in a render tree dump and want to see if they're
what you expect or if they're wildly away from the right location.
2015-10-21 13:31:09 -07:00
Hixie
545db87ace AlwaysCompletePerformance, ReversePerformance
These new PerformanceView classes are transforms over PerformanceViews.
The first is a cheap way to tell code that expects a performance to not
animate after all, and the other is a way to replace a view of a
performance going in one direction with a view of a performance going in
the other direction.

See also https://github.com/flutter/engine/issues/1708
2015-10-21 11:38:52 -07:00
Hixie
86087cbb08 RotationTransition
A transition that rotates its contents.
2015-10-21 11:35:31 -07:00
Hixie
babba2f0ec Make Route.build() arguments match RouteBuilder()
Assert at build time that PageRoute route builders do not return null
widget trees.

Also very minor new code comments and code reorg to help make the heroes
patch easier to review.

(These are changes that are unrelated to Heroes but that were part of
the Heroes patch.)
2015-10-21 11:33:44 -07:00
Hixie
188aade214 UniqueKey
Sometimes you need a Key (not a GlobalKey) that is only equal to itself
but can be used multiple times in the tree. Enter UniqueKey!
2015-10-21 10:03:11 -07:00
Adam Barth
845c50be9e Improve comments describing FractionalOffset
Fixes #1702
2015-10-20 16:10:22 -07:00
Kris Giesing
18e154d40b Improve tap; add double tap; add tests 2015-10-20 15:50:07 -07:00