2064 Commits

Author SHA1 Message Date
Collin Jackson
6c2bbff4ad Media query class for querying viewport information 2015-10-28 12:34:57 -07:00
Adam Barth
af790303c2 Merge pull request #1848 from abarth/icon_size
Icon should use an enum rather than an int for size
2015-10-28 09:13:23 -07:00
Adam Barth
0f9c179e7d Merge pull request #1849 from abarth/rm_edges
Remove unused material edge definition
2015-10-28 09:13:11 -07:00
Adam Barth
eeea4ab7c7 Icon should use an enum rather than an int for size
Material design icons are defined to work at specific sizes: 18, 24, 36, 48.
The current API doesn't reflect that and just takes a size int. If an invalid
size is chosen an error is printed to the console and no icon shows up.

Fixes #1816
2015-10-28 08:55:49 -07:00
Adam Barth
62336ce4a8 Remove unused material edge definition
The one we actually use is in material.dart.
2015-10-28 07:34:11 -07:00
Adam Barth
3373d0ba01 Switch clients from ui.view to ui.window 2015-10-28 07:16:56 -07:00
Adam Barth
02a1ebabd7 Rev pub packages 2015-10-27 20:15:58 -07:00
krisgiesing
819125913b Merge branch 'master' into tap-fix 2015-10-27 15:24:04 -07:00
Hans Muller
e90dcf8e34 Adds modal bottom sheets: showModalBottomSheet() 2015-10-27 14:57:18 -07:00
Kris Giesing
25ed15773c #1834 Reset tap state after successful tap 2015-10-27 14:47:09 -07:00
Hixie
32ca055f12 Notification of metrics changes.
The Rendering layer binding now multiplexes the dart:ui metrics change
notification so that multiple consumers can all listen to the change.
2015-10-27 14:32:00 -07:00
Adam Barth
1e446ffc28 Add the position at which drags start
Fixes #1807
2015-10-27 14:25:03 -07:00
Adam Barth
dc6366793f Merge pull request #1832 from abarth/tap_position
Add a position to the onTap callback
2015-10-27 14:20:35 -07:00
Adam Barth
2225405fad Add a position to the onTap callback
Fixes #1807
2015-10-27 14:12:54 -07:00
Viktor Lidholt
be2b4db314 Merge pull request #1833 from vlidholt/master
Improves physics debug drawing
2015-10-27 14:08:05 -07:00
Ian Hickson
8a900f9042 Track scroll position
- Change RouteArguments to pass the route's BuildContext rather than
  the Navigator. This caused the bulk of the examples/ and .../test/
  changes (those are mostly mechanical changes). It also meant I could
  simplify Navigator.of().

- Make initState() actually get called when the State's Element is in
  the tree, so you can use Foo.of() functions there. Added a test for
  this also.

- Provide a RouteWidget so that routes have a position in the Widget
  tree. The bulk of the route logic is still in a longer-lived Route
  object for now.

- Make Route.setState() only rebuild the actual route, not the whole
  navigator.

- Provided a Route.of().

- Provided a Route.writeState / Route.readState API that tries to
  identify the clients by their runtimeType, their key, and their
  ancestors keys, up to the nearest ancestor with a GlobalKey.

- Made scrollables hook into this API to track state. Added a test to
  make sure this works.

- Fix the debug output of GestureDetector and the hashCode of
  MixedViewport.

- Fixed ScrollableWidgetListState<T> to handle infinite lists.
2015-10-27 13:46:07 -07:00
Viktor Lidholt
848b79efc8 Updates physics test to draw debug 2015-10-27 13:39:19 -07:00
Viktor Lidholt
fde92a69a5 Improves physics debug drawing 2015-10-27 13:38:52 -07:00
Viktor Lidholt
96689dec7f Fixes issue with physics collision groups 2015-10-27 13:38:20 -07:00
Adam Barth
e77cad81c1 Use VoidCallback in more places
We still use special-purpose typedefs in the gesture code for symmetry with
other gesture callbacks.

Fixes #1827
2015-10-27 11:19:44 -07:00
Adam Barth
7ae730bb2e Merge pull request #1822 from abarth/custom_shifted_box
Add CustomOneChildLayout
2015-10-27 11:10:00 -07:00
Adam Barth
3e27b9b345 Merge pull request #1825 from abarth/tap_tracker
Make TapTracker and TapGesture private classes
2015-10-27 11:09:34 -07:00
Adam Barth
f06559afed Add CustomOneChildLayout
A CustomOneChildLayout is a widget that lets you perform a custom layout in the
simplified setting of sizing and positioning a single child.
2015-10-27 11:04:32 -07:00
Adam Barth
d6dc9d47b8 Use VoidCallback for onPressed and friends
Previous these callbacks were leaking the implementation detail that they were
triggered by taps. In a later patch, we're going to add a parameter to
GestureTapCallback that these callbacks won't have.

Related to #1807
2015-10-27 10:21:10 -07:00
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