1852 Commits

Author SHA1 Message Date
Hixie
927edaac48 Rename RouteState to StateRoute
...for consistency with the other Route subclasses:
```
  dialog.dart:      class DialogRoute extends Route
  drag_target.dart: class DragRoute extends Route
  navigator.dart:   class PageRoute extends Route
  navigator.dart:   class StateRoute extends Route
  popup_menu.dart:  class MenuRoute extends Route
```
2015-10-01 12:57:20 -07:00
Hixie
13ffcaff2f Remove the mixed_viewport demo
It's redundant with card_collection.dart, which does similar things but
much better.
2015-10-01 12:53:34 -07:00
Hixie
4d186e3c28 Port overlay_geometry.dart demo.
This removes GlobalKey.currentElement in favour of GlobalKey.currentContext.
2015-10-01 12:50:49 -07:00
Collin Jackson
6d689c6c08 Support for decoding images in lists 2015-10-01 11:06:11 -07:00
Adam Barth
fbd5460b04 Integrate WidgetTester with FakeAsync
Fixes #1084
2015-10-01 10:56:58 -07:00
Adam Barth
67feb40cb5 Update playfair to a version that supports fn3 2015-10-01 09:54:31 -07:00
Adam Barth
45c906d2ad Make fn3 the default widget framework 2015-10-01 09:48:35 -07:00
Adam Barth
9fe747e409 Remove unused imports 2015-10-01 09:30:31 -07:00
Ian Hickson
3d788f3d79 Merge pull request #1426 from flutter/boxconstraints
BoxConstraints trivial cleanup
2015-10-01 09:29:29 -07:00
Ian Hickson
0533946b82 Merge pull request #1427 from flutter/basic
Keep the two ConstrainedBox classes together
2015-10-01 09:29:25 -07:00
Adam Barth
5477d46f19 Port SkySprites and clients to fn3 2015-10-01 09:26:19 -07:00
Hans Muller
8a46b15b94 Merge pull request #1429 from HansMuller/add_clamped_simulation
Add clamped simulation
2015-10-01 09:08:42 -07:00
Adam Barth
d96cbdd084 Port demo_launcher and fitness to fn3 2015-10-01 09:07:17 -07:00
Hans Muller
30a8e04b7e Added missing clamped_simulation.dart file 2015-10-01 09:06:08 -07:00
Adam Barth
8fb59f1d6a Merge pull request #1416 from mdakin/minedigger2
Fix bounds checking error I introduced in previour cl, Address style …
2015-10-01 08:30:36 -07:00
Adam Barth
43190374af Merge pull request #1424 from abarth/consolidate_tests
Consolidate widget tests
2015-10-01 08:30:20 -07:00
Collin Jackson
b05d42c3b9 Merge pull request #1220 from collinjackson/scaling_focus
Ensure that the item under the focal point stays in the same place despite zooming
2015-10-01 07:27:54 -07:00
Ian Hickson
b25488cead Keep the two ConstrainedBox classes together
@abarth
2015-09-30 22:25:54 -07:00
Ian Hickson
ca14896b25 BoxConstraints trivial cleanup
TBR @abarth
2015-09-30 22:22:37 -07:00
Adam Barth
4525159831 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
Hans Muller
c06995a379 Clamp the snapped scroll simulation; Scrollable settle() and fling() return a Future 2015-09-30 16:52:17 -07:00
Adam Barth
946da1015a Merge pull request #1411 from abarth/port_input_test
Port input_test to fn3
2015-09-30 16:00:52 -07:00
Jason Simmons
e8a756c769 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
3429081263 Make the fn3 EditableText expand to fill the width of its parent 2015-09-30 15:40:37 -07:00
Adam Barth
f4afd0d9d2 Merge pull request #1418 from abarth/dimissable_test
Port dimissable_test.dart to fn3
2015-09-30 15:18:19 -07:00
Matt Perry
f26d8d83a5 Merge pull request #1414 from mpcomplete/use.changes.2
Implement working UpdateTask in Dart
2015-09-30 18:15:12 -04:00
Matt Perry
af3a10f4e4 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
Hans Muller
d757694618 Merge pull request #1415 from HansMuller/snap_scrolling_tests
Snap scrolling: additional tests, cleanup
2015-09-30 15:06:45 -07:00
Adam Barth
d4b1519cef Port dimissable_test.dart to fn3 2015-09-30 15:03:32 -07:00
Ian Hickson
1d0573fdf2 Merge pull request #1413 from Hixie/performance
Simplify AnimationPerformance
2015-09-30 14:47:19 -07:00
Adam Barth
e312c6be79 Merge pull request #1410 from abarth/flutter_dev
s/sky-dev/flutter-dev/
2015-09-30 14:35:05 -07:00
mdakin
e509cd7d18 Fix bounds checking error I introduced in previour cl, Address style issues. 2015-09-30 23:15:55 +02:00
Hans Muller
4ac052357f Snap scrolling: additional tests, cleanup 2015-09-30 14:13:11 -07:00
Hixie
3b62185f8a 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
11e7dfbe79 Port input_test to fn3 2015-09-30 13:25:46 -07:00
Adam Barth
abb836d19e s/sky-dev/flutter-dev/ 2015-09-30 13:20:43 -07:00
Adam Barth
347bd25cb4 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
01f7c8460f Rev pub package 2015-09-30 12:10:12 -07:00
Adam Barth
215e6ae25c 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
Adam Barth
37ee4b25f5 Add widgets_next.dart to help folks transition to fn3
Also, fix analyzer warning in fn2.
2015-09-30 11:22:05 -07:00
Ian Hickson
8f91be5a02 Merge pull request #1405 from Hixie/dynamic-routes
Dynamic named routes
2015-09-30 09:54:27 -07:00
Hixie
f2b7dd6201 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
32558478b1 Fix alignment of mine counts, simplfy code a bit. 2015-09-30 15:11:42 +02:00
Ian Hickson
1203b08b73 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
9cb9eaf54f Merge pull request #1403 from Hixie/clickable-stocks
Make Stocks demo list rows clickable
2015-09-29 22:32:00 -07:00
Adam Barth
84f2b5a5b0 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
Hixie
a91dd07cb3 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
f43591b3c4 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
4150615e26 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
156ff2beec Merge pull request #1386 from Hixie/toString
fn3: toString() and toStringDeep() debugging aids
2015-09-29 17:09:54 -07:00