4633 Commits

Author SHA1 Message Date
Adam Barth
db8b4ae641 Consolidate widget tests
Now that we've ported all the widget tests to fn3, we don't need a separate fn3
directory.
2015-09-30 18:58:17 -07:00
Chinmay Garde
d53475832f Merge pull request #1423 from chinmaygarde/master
Allow visualizing engine and rasterizer statistics simultaneously
2015-09-30 17:45:12 -07:00
Chinmay Garde
49807c0da9 Fix off-by-one error in calculation of the last lap in instrumentation::Stopwatch 2015-09-30 17:30:43 -07:00
Chinmay Garde
418ed6f689 Allow visualizing engine and rasterizer statistics simultaneously 2015-09-30 17:18:37 -07:00
Hans Muller
a1ead06967 Merge pull request #1422 from HansMuller/clamp_snap_simulation
Clamp the snapped scroll simulation; Scrollable settle() and fling() return a Future

Reduce the time dependency in the snap scrolling unit tests by clamping the FrictionSimulation that drives the scrollOffset. No more overshooting the final scroll position if the FakeAsync runs too long.

Added ClampingSimulation: just wraps a simulation and optionally clamps its x() and dx() values.

The Scrollable fling() and settle() methods now return a Future. Added a unit test for this.
2015-09-30 16:57:54 -07:00
Hans Muller
41926f9952 Clamp the snapped scroll simulation; Scrollable settle() and fling() return a Future 2015-09-30 16:52:17 -07:00
Adam Barth
0ac1af8f69 Merge pull request #1411 from abarth/port_input_test
Port input_test to fn3
2015-09-30 16:00:52 -07:00
Jason Simmons
d08bf50348 Merge pull request #1421 from jason-simmons/editable_text_fn3_expand_width
Make the fn3 EditableText expand to fill the width of its parent
2015-09-30 15:56:27 -07:00
Jason Simmons
0f210795c0 Make the fn3 EditableText expand to fill the width of its parent 2015-09-30 15:40:37 -07:00
Adam Barth
eb144186ac Merge pull request #1418 from abarth/dimissable_test
Port dimissable_test.dart to fn3
2015-09-30 15:18:19 -07:00
Matt Perry
2db1dbea4e Merge pull request #1414 from mpcomplete/use.changes.2
Implement working UpdateTask in Dart
2015-09-30 18:15:12 -04:00
Matt Perry
3266b147cf Implement working UpdateTask in Dart
Dart code now supports the full flow that the C++ code used to: version check,
download, replace app bundle. Bonus: the Dart code is much easier to follow,
thanks to async/await!

This is part 2 of a 3-part change. The first part added new mojom
interfaces, PathService and UpdateService, to the sky_services package.
2015-09-30 18:13:11 -04:00
Chinmay Garde
60176eb6fa Account for the canvas flush and surface swap buffers durations in the instrumented frame times (via the ScopedFrame) 2015-09-30 15:07:57 -07:00
Hans Muller
17a6090008 Merge pull request #1415 from HansMuller/snap_scrolling_tests
Snap scrolling: additional tests, cleanup
2015-09-30 15:06:45 -07:00
Adam Barth
00687685b8 Port dimissable_test.dart to fn3 2015-09-30 15:03:32 -07:00
Chinmay Garde
beef890122 Flip the stats graph and handle boundary conditions 2015-09-30 14:47:57 -07:00
Ian Hickson
f21355da46 Merge pull request #1413 from Hixie/performance
Simplify AnimationPerformance
2015-09-30 14:47:19 -07:00
Adam Barth
d87c6576b0 Merge pull request #1410 from abarth/flutter_dev
s/sky-dev/flutter-dev/
2015-09-30 14:35:05 -07:00
Hans Muller
b77990cc2e Snap scrolling: additional tests, cleanup 2015-09-30 14:13:11 -07:00
Chinmay Garde
52ad2a67e6 Display FPS as well as ms/frame 2015-09-30 14:10:38 -07:00
Hixie
18fb289657 Simplify AnimationPerformance
AnimationPerformance had some logic for supporting multiple variables
that was hardly ever used. ValueAnimation, a subclass, has logic for
handling a single variable. I've removed the logic for handling
variables from AnimationPerformance in favour of most call sites instead
using ValueAnimation.
2015-09-30 13:51:20 -07:00
Adam Barth
5f80bf2c5b Port input_test to fn3 2015-09-30 13:25:46 -07:00
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
2ec7216e21 s/sky-dev/flutter-dev/ 2015-09-30 13:20:43 -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