4610 Commits

Author SHA1 Message Date
Adam Barth
200426edce Merge pull request #1409 from abarth/rm_init_state_arg
Remove BuildContext argument to initState
2015-09-30 13:21:13 -07:00
Adam Barth
05d4f1b8aa Remove BuildContext argument to initState
This argument isn't needed anymore now that State has a getter for context.
2015-09-30 13:15:46 -07:00
Adam Barth
23f4703c45 Rev pub package 2015-09-30 12:10:12 -07:00
Chinmay Garde
e21099f492 Merge pull request #1406 from chinmaygarde/master
Make path to PlistBuddy in the Xcode harness script for symbolicating the binary absolute
2015-09-30 12:08:58 -07:00
Adam Barth
0d98a31b0e Rev pub package 2015-09-30 12:07:40 -07:00
Matt Perry
2993195e58 Merge pull request #1407 from mpcomplete/mojom.changes
Add new mojom interfaces PathService and UpdateService.
2015-09-30 14:32:31 -04:00
Adam Barth
67f1d0e652 Merge pull request #1408 from abarth/widgets_next
Add widgets_next.dart to help folks transition to fn3
2015-09-30 11:29:09 -07:00
Matt Perry
325a309c6d Add new mojom interfaces PathService and UpdateService.
These will be used by the updater package.
2015-09-30 14:28:49 -04:00
Adam Barth
a119d8ebb6 Add widgets_next.dart to help folks transition to fn3
Also, fix analyzer warning in fn2.
2015-09-30 11:22:05 -07:00
Chinmay Garde
51092532b7 Make path to PlistBuddy in the Xcode harness script for symbolicating the binary absolute. 2015-09-30 11:02:20 -07:00
Ian Hickson
a406c96f76 Merge pull request #1405 from Hixie/dynamic-routes
Dynamic named routes
2015-09-30 09:54:27 -07:00
Adam Barth
46043b3c62 Merge pull request #1404 from mdakin/minediggerfix
Fix alignment of mine counts, simplfy code a bit.
2015-09-30 09:13:39 -07:00
Hixie
1357f2bb4c Dynamic named routes
Make it possible for named routes to be generated on the fly.

To demonstrate this, you can now long-press a stock to open it.

Next steps:

 - transitions between (named) states that follow full material logic,
   e.g. in the case of the stock row to stock page transition, expanding
   the row into a raised sheet of material and expanding it to fit the
   screen, leaving the toolbar in place but cross-fading the old
   contents to the new contents.

 - more information in the stock view.

While I was here I also made Material have an opinion about default text
style, so if you forget to set one, it just uses body1.

Also, fixed bugs introduced recently that made RouteState and MenuRoute
not work properly.
2015-09-30 09:03:58 -07:00
mdakin
0d6170a235 Fix alignment of mine counts, simplfy code a bit. 2015-09-30 15:11:42 +02:00
Ian Hickson
620f01da32 Merge pull request #1402 from Hixie/overflow
Change OverflowBox API to allow min and max values
2015-09-29 22:32:26 -07:00
Ian Hickson
c34763f8e7 Merge pull request #1403 from Hixie/clickable-stocks
Make Stocks demo list rows clickable
2015-09-29 22:32:00 -07:00
James Robinson
2c48b39db0 Merge pull request #1395 from jamesr/roll_mojo_sdk_dart_enum_fix
Bump Mojo SDK to 033ebba67 to get Dart enum case fix
2015-09-29 20:32:00 -07:00
Adam Barth
8aedb0157b Merge pull request #1397 from jason-simmons/editable_text_unused_import_sky
Fix a couple of analyzer warnings
2015-09-29 19:42:43 -07:00
Ian Hickson
315a8b0f20 Merge pull request #1394 from Hixie/draggable
Draggable
2015-09-29 18:00:47 -07:00
Hixie
a7443e75a5 Draggable
Introduce a Draggable class that wraps all the logic of dragging
something and dropping it on a DragTarget.

Update examples/widgets/drag_and_drop.dart accordingly.

Make the performance/transition part of routes optional.
2015-09-29 18:00:40 -07:00
Hixie
f18fa35b4a Make Stocks demo list rows clickable
Not having them clickable was making it hard to notice InkSplash bugs.
Also, this paves the way to having a stock page.
2015-09-29 17:55:27 -07:00
Ian Hickson
b0ffe888b1 Merge pull request #1401 from Hixie/lists
Make hit testing work in horizontal scrolling list
2015-09-29 17:10:01 -07:00
Ian Hickson
71e96c4a02 Merge pull request #1386 from Hixie/toString
fn3: toString() and toStringDeep() debugging aids
2015-09-29 17:09:54 -07:00
Ian Hickson
e601015bff Merge pull request #1377 from Hixie/rebuild
Require giving a GlobalKey to UniqueComponent
2015-09-29 17:09:34 -07:00
Ian Hickson
8b0e60e258 Merge pull request #1376 from Hixie/toggleable
Make the checkbox in the stocks popup menu work.
2015-09-29 17:08:36 -07:00
Hixie
1477775f8e Change OverflowBox API to allow min and max values
Previously OverflowBox was only useful to set a tight constraint on the
child. Now it can be used to set any constraint, it just overrides any
constraint from the parent that is not set to null on the
RenderOverflowBox object when giving the constraints to the child.
2015-09-29 17:06:36 -07:00
Hixie
0efe4fe7f3 Make hit testing work in horizontal scrolling list
Previously, hitTestChildren in RenderBlockViewport just didn't support
horizontal scrolling, due to an oversight.
2015-09-29 16:30:18 -07:00
Hans Muller
7d40a8327f Merge pull request #1400 from HansMuller/land_snap_scrolling_unit_test
Land snap_scrolling_test.dart
2015-09-29 16:00:33 -07:00
Andrew Wilson
b08dfd6106 Merge pull request #1399 from apwilson/bug
Fix stop mimic assert bug.
2015-09-29 15:31:21 -07:00
Andrew Wilson
de6d8e5a2e Fix stop mimic assert bug. 2015-09-29 15:28:54 -07:00
Hans Muller
db55a483a0 Land snap_scrolling_test.dart 2015-09-29 15:28:42 -07:00
Ian Hickson
6def36ca57 Merge pull request #1371 from Hixie/fab-snack
Make the FAB move up when a Snack Bar slides in.
2015-09-29 15:23:49 -07:00
Hans Muller
61b211e48f Merge pull request #1398 from HansMuller/fix_analayzer_warning
Fix _scrollOffsetIsInBounds analayzer warning
2015-09-29 14:41:48 -07:00
Hans Muller
5952c44ff1 Fix _scrollOffsetIsInBounds analayzer warning 2015-09-29 14:21:57 -07:00
Hans Muller
1f6c1b4c3f Fix _scrollOffsetIsInBounds analayzer warning 2015-09-29 14:17:23 -07:00
Jason Simmons
e182e87080 Fix a couple of analyzer warnings
* Unused import in editable_text.dart
* Type mismatch in append_child_test.dart
2015-09-29 14:04:47 -07:00
Jason Simmons
fd101584b9 Merge pull request #1361 from jason-simmons/edit_text_scrollable_fn3
Allow the Input/EditableText widget to scroll horizontally
2015-09-29 13:20:58 -07:00
Collin Jackson
32216f6d52 Merge pull request #1393 from collinjackson/back_button
pressing back button should close app if there is no previous route
2015-09-29 12:32:04 -07:00
Collin Jackson
f8e9ae20f4 pressing back button should close app if there is no previous route 2015-09-29 12:28:28 -07:00
Hans Muller
e73745eef4 Merge pull request #1392 from HansMuller/more_rename_scroll_behavior_release
-straggler- Rename ScrollBehavior release() to createFlingScrollSimulation()

I accidentally updated the fn2 version of tabs.dart instead of the fn3 verison.

TBR=chinmay
2015-09-29 12:25:36 -07:00
Hans Muller
451e11af6e -straggler- Rename Scrollbehavior release() to createFlingScrollSimulation() 2015-09-29 12:14:19 -07:00
Chinmay Garde
2459b3a026 Merge pull request #1391 from chinmaygarde/master
Run a CPPLint pass on sky/compositor
2015-09-29 12:03:04 -07:00
Hans Muller
9ed96d6b10 Merge pull request #1390 from HansMuller/rename_scroll_behavior_release
Rename Scrollbehavior release() to createFlingScrollSimulation()
2015-09-29 12:02:13 -07:00
Chinmay Garde
d2d02a5fe6 Run a CPPLint pass on sky/compositor 2015-09-29 11:55:08 -07:00
Hans Muller
a0e208e234 Rename Scrollbehavior release() to createFlingScrollSimulation() 2015-09-29 11:45:18 -07:00
James Robinson
1ff0947b1c Bump Mojo SDK to 033ebba67 to get Dart enum case fix 2015-09-29 11:24:09 -07:00
Chinmay Garde
d13ad78e12 Merge pull request #1389 from chinmaygarde/master
Import stdint.h for uint64_t in compositor_options.h (Fix Build)
2015-09-29 11:20:56 -07:00
Chinmay Garde
cb50ab36dd Import stdint.h for uint64_t in compositor_options.h (Fix non Mac builds) 2015-09-29 11:19:53 -07:00
Hans Muller
efa6f019bc Merge pull request #1379 from HansMuller/scrolling_snap_offsets
SnapOffsets for fling scrolling

Initial snap offset support for ScrollableWidgetList (and ScrollableList<T>) and ScrollableMixedWidgetList. If a ```toSnapOffset(scrollOffset)``` function is provided, fling Scrolls will coast to the returned value. If ```alignmentOffset``` is specified then fling scrolls conclude when toSnapOffset's value lines up with the Scrollable widget's origin + alignmentOffset. For example if the Scrollable widget's height was 200.0, and alignmentOffset:100.0 was specified, then fling scrolls would end with the value returned by toSnapOffset() lined up with the center of the Scrollable.

This approach to Scrollable snapping assumes that the layout of whatever the Scrollable contains is known at the outset. This is often true however a ScrollableMixedWidgetList may not know its items' sizes until they've been reached by scrolling.

This is a first cut at snapping support. Among the things that remain to be done:
- Scrolling limits trump snapping. Snapping should probably trump scrolling limits.
- Drag scrolls aren't snapped. This may be desirable so perhaps the feature should be controlled with a flag.
- Specifying alignmentOffset as a percentage would probably be more convenient.
- It would be nice if one could wrap items in a SnapOffset value like: ```new SnapOffset(0.5, child: myItem)``` to snap to the center of the item.

Updated the CardCollection example: snapping and fixed size items can be turned on/off with Drawer checkboxes.
2015-09-29 11:15:23 -07:00
Hans Muller
68b00481a1 SnapOffsets for fling Scrolling
Initial snap offset support for ScrollableWidgetList (and ScrollableList<T>) and ScrollableMixedWidgetList. If a ```toSnapOffset(scrollOffset)``` function is provided, fling Scrolls will coast to the returned value. If ```alignmentOffset``` is specified then fling scrolls conclude when toSnapOffset's value lines up with the Scrollable widget's origin + alignmentOffset. For example if the Scrollable widget's height was 200.0, and alignmentOffset:100.0 was specified, then fling scrolls would end with the value returned by toSnapOffset() lined up with the center of the Scrollable.

This approach to Scrollable snapping assumes that the layout of whatever the Scrollable contains is known at the outset. This is often true however a ScrollableMixedWidgetList may not know its items' sizes until they've been reached by scrolling.

This is a first cut at snapping support. Among the things that remain to be done:
- Scrolling limits trump snapping. Snapping should probably trump scrolling limits.
- Drag scrolls aren't snapped. This may be desirable so perhaps the feature should be controlled with a flag.
- Specifying alignmentOffset as a percentage would probably be more convenient.
- It would be nice if one could wrap items in a SnapOffset value like: ```new SnapOffset(0.5, child: myItem)``` to snap to the center of the item.

Updated the CardCollection example: snapping and fixed size items can be turned on/off with Drawer checkboxes.
2015-09-29 11:09:59 -07:00