Commit Graph

29153 Commits

Author SHA1 Message Date
Adam Barth
395184f77f Add hero transition support to Navigator2
In this approach, the hero support is layered on top of the basic navigator
functionality.
2015-10-29 13:29:24 -07:00
Jason Simmons
0a2bfc314f Merge pull request #1861 from jason-simmons/canvas_image_memory_leak_2
simplify the ImageDecoder native code binding
2015-10-29 13:28:04 -07:00
Jason Simmons
f1b048f245 simplify the ImageDecoder native code binding 2015-10-29 13:11:02 -07:00
Devon Carew
0da7c7c6ac upgrade test 2015-10-29 11:42:02 -07:00
Devon Carew
b15bcc5c64 0.0.29 2015-10-29 11:32:54 -07:00
Devon Carew
494d1e0140 verify that we're running from the root of a project
remove an unused import

review comments

rename st --> stack
2015-10-29 11:30:44 -07:00
Adam Barth
fab160cfce Rationalize embedder.dart and shell.dart
This patch combines embedder.dart and shell.dart into one thing. We should now
handle a bunch of error cases better.

  * embedder.connectToApplication has moved to shell.connectToApplication,
    matching the rest of the mojo universe.
  * embedder.connecttoService has moved to shell.connnectToService (and merged
    with shell.requestService).
  * shell.requestService is now shell.connectToService, matching the rest of
    the mojo universe.
  * serviceRegistry has moved from embedder.serviceRegistry to a top-level
    getter.

Fixes #1803
2015-10-29 10:47:34 -07:00
Adam Barth
2e301d4d70 Add support for modal, ephemeral, and contentless routes to Navigator2
Routes can now create a list of widgets, which can be empty (in the case of
contentless routes) or have multiple entries (in the case of modal routes).

Ephemeral routes are handled by keeping a separate list of modal and ephemeral
routes.
2015-10-28 23:18:14 -07:00
Lex Berezhny
64b27be5dd maxWidth -> maxIntrinsicWidth 2015-10-28 22:10:08 -04:00
Lex Berezhny
9153e7bbce update playfair to match flutter/painting module refactoring 2015-10-28 20:43:37 -04:00
Viktor Lidholt
856ee97892 Merge pull request #1863 from vlidholt/master
Adds API documentation to sprite physics
2015-10-28 17:07:02 -07:00
Adam Barth
5b3b3dfb3a Merge pull request #1862 from abarth/navigator2
Add an initial implementation of Navigator2
2015-10-28 17:00:12 -07:00
Viktor Lidholt
567b0cf293 Adds API documentation to sprite physics and renames a few private variables for clarity. 2015-10-28 16:51:00 -07:00
Hans Muller
90a3a20d83 Merge pull request #1860 from HansMuller/tabs
Correct TabNavigatorWidth, tabs.dart example
2015-10-28 16:40:50 -07:00
Adam Barth
b991b7d664 Add an initial implementation of Navigator2
This navigator can handle simple page navigation. I'll add more features in
subsequent CLs.
2015-10-28 16:40:22 -07:00
Hans Muller
7de7105fc5 Correct TabNavigatorWidth, tabs.dart example 2015-10-28 16:26:22 -07:00
Hixie
cbf9eab8fe Rev package versions for release.
sky_engine is now at 0.0.44
sky_services is now at 0.0.44
flx is now at 0.0.3
flutter is now at 0.0.14
flutter_sprites is now at 0.0.11
2015-10-28 14:54:33 -07:00
Hixie
4c9f15cc8b Rev the Dart SDK to pick up better dartdocs 2015-10-28 14:50:19 -07:00
Ian Hickson
6d4221cb95 Merge pull request #1851 from Hixie/MixedViewport-bug
Fix crash when removing a card in card_collection
2015-10-28 14:47:40 -07:00
Hixie
58013dc80d rev-flutter tool
A tool to update all the pubspec.yaml versions when we're revving flutter.
2015-10-28 14:45:02 -07:00
Collin Jackson
edf5db1943 Merge pull request #1831 from collinjackson/media_query
Media query class for querying viewport dimensions
2015-10-28 14:14:08 -07:00
Matt Perry
114d8fe6c4 Merge pull request #1853 from mpcomplete/tests
Some initial unit tests for package signing
2015-10-28 16:57:27 -04:00
Devon Carew
678af9c045 fix some issues found by strong mode 2015-10-28 13:42:46 -07:00
Hans Muller
1990a3be53 Support dismissing the modal bottom sheet with a drag gesture 2015-10-28 13:08:34 -07:00
Matt Perry
bee7119e33 Add some unit tests for flx signing code. 2015-10-28 15:52:34 -04:00
Collin Jackson
6c2bbff4ad Media query class for querying viewport information 2015-10-28 12:34:57 -07:00
Devon Carew
9992a3e0bb Update README.md
Add a badge for AppVeyor.

(TBR)
2015-10-28 11:18:13 -07:00
Hixie
a8a32a972a Fix crash when removing a card in card_collection
MixedViewport didn't use the building:true flag when locking itself, so
when it caused a rebuild of its children, we assumed that nobody was
allowed to mark things dirty below the list, and things crashed when
Inherited people did in fact rebuild.

Also:
 - default offset for MixedViewport
 - don't bother rebuilding if the underlying RenderObject is going to
   rebuild anyway for some reason
 - better docs for the "items must have keys" assert
 - keep the FlipComponent stuff together in test_widgets.dart
2015-10-28 10:31:12 -07:00
Hixie
672976aa0a Rev the Dart SDK
We also have to require a newer test package, since the old one depends
on a version of the analyzer that uses dart:profiler, which is gone and
replaced by dart:developer.
2015-10-28 09:58:11 -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