438 Commits

Author SHA1 Message Date
P.Y. Laligand
194fb81209
[fuchsia] Removed the flutter_app template. (#4511)
It is moving to the Fuchsia codebase.
2018-01-04 09:20:41 -08:00
P.Y. Laligand
419ee7c355 Update the location of Flutter packages. (#4257) 2017-10-20 14:25:49 -07:00
P.Y. Laligand
5fae5d52cf Allow the project to be mapped to a location other than //flutter. (#4203)
This is for Fuchsia where we would like it to be located at //third_party/flutter.
2017-10-13 17:00:58 -07:00
P.Y. Laligand
3e4d42b8f3 Add empty pubspec.yaml files. (#4212)
They help the analysis service identify packages and are now mandatory on Fuchsia.
2017-10-12 14:46:51 -07:00
P.Y. Laligand
472596fe3b Properly pass the disable_analysis parameter. (#4177)
Added it to a few targets.
2017-10-06 10:48:25 -07:00
Ryan Macnak
2455f209d0 [fuchsia] Make it easy to flip the whole system between flutter_jit_app and flutter_aot_app. (#3873) 2017-07-19 14:21:02 -07:00
P.Y. Laligand
3ddf163063 Fixed some analysis issues. (#3656) 2017-05-05 18:37:40 -07:00
P.Y. Laligand
89ec057e38 Add missing dependency. (#3643) 2017-05-02 15:30:48 -07:00
Ryan Macnak
71456a6801 Fuchsia AOT: (#3626)
- Fix flutter_aot_app template for moved Flutter tool GN label.
 - Add missing dart:io tree-shaking roots.
 - Add example AOT app to catch future breakage.
2017-04-25 13:28:52 -07:00
Ian Hickson
bcc8779cb8 Remove the Point class. (#3567)
* Remove the Point class.

* Add Size.contains and Rect.translate for consistency

* Make Offset and Size compare == with subclasses.

Without this we would break the _DebugSize hack.

* Fix copy/pasta

* Fix the examples in the engine repo
2017-04-12 13:45:46 -07:00
Adam Barth
cd14345215 Update for API change (#3176) 2016-10-27 10:19:30 -07:00
Adam Barth
31161a9568 Update examples for window.physicalSize (#3086)
Now the engine always gives values in physical pixels.
2016-10-01 10:01:41 -07:00
Adam Barth
8d102cbe40 Add hello_flutter and make it work on Fuchsia (#3016) 2016-09-11 15:53:48 -07:00
James Robinson
dcb026188a [build] Add new flutter_app GN template for Fuchsia style package management (#2999) 2016-09-01 23:01:58 -07:00
Adam Barth
bb80218df8 Add spinning_square example (#2928)
Also, teach gn how to build application bundles.
2016-08-15 23:07:19 -07:00
Kris Giesing
0a8a13f519 Remove examples directory 2015-11-09 12:56:44 -08:00
Adam Barth
6f811f02e0 Merge pull request #2009 from abarth/rm_packages
Remove Dart packages which have moved to flutter.dart
2015-11-07 00:47:54 -08:00
Adam Barth
150bbf6c7a Remove Dart packages which have moved to flutter.dart 2015-11-07 00:34:12 -08:00
Adam Barth
d74bcd10ef Merge pull request #1972 from krisgiesing/examples
Add flutter.yaml for address_book example
2015-11-06 20:33:34 -08:00
Hixie
cb43463e3a Teach Block about padding.
It's common to want a scrolling viewport but with padding around the
contents. Teaching Block about this makes the places that do this
substantially simpler and further buries ScrollableViewport and
BlockBody (they're now only used in scrollable.dart).
2015-11-05 17:14:27 -08:00
Hans Muller
0de65b49e1 Replace Align shrinkWrap parameter with widthFactor and heightFactor 2015-11-05 16:45:05 -08:00
Kris Giesing
39da5d0e59 Remove unneeded flutter.yaml property 2015-11-05 15:25:17 -08:00
Kris Giesing
f32360a822 Add flutter.yaml for address_book example 2015-11-05 15:20:05 -08:00
Hixie
386ba7e8d9 Make Draggable use gestures
Draggable is now itself a gesture arena member. This means it won't
conflict with other gesture recognisers in the same path.

This also allows variants of Draggable that are triggered by other
gestures.

Also, some cleanup of DoubleTapGestureRecognizer, GestureDetector, and
PrimaryPointerGestureRecognizer.

Also, make MultiTapGestureRecognizer support a timeout for longpress.

Also, make Draggable data be typed.

Also, hide warnings about constructor warnings for now. Analyzer doesn't
support them yet. (Have to do this on a per-line basis)

Directions for future research:
 - animating the avatar (enter/exit transitions)
 - interaction with the navigator (canceling a drag on page navigation, etc)
 - double-tap draggable
2015-11-05 15:16:59 -08:00
Matt Perry
f64f9fd0ef Fix updater. It was looking for the wrong files. 2015-11-05 17:56:50 -05:00
Viktor Lidholt
c225a6af24 Merge pull request #1889 from vlidholt/master
Fixes navigation back to main menu in demo game
2015-11-04 13:12:23 -08:00
Hans Muller
f072fca3bc added ToolBar.withSizeOffsets() 2015-11-03 14:16:45 -08:00
Hans Muller
a1274736fe message string 2015-11-03 14:16:45 -08:00
Hans Muller
faa349af26 Extended height toolbar 2015-11-03 14:16:45 -08:00
Hixie
38c69e7408 Convert the scale demo to a general gestures demo. 2015-11-03 12:26:02 -08:00
Adam Barth
58f41e2e84 Rev pubspecs 2015-11-02 13:19:55 -08:00
Adam Barth
ecf6a19ed0 Merge pull request #1899 from abarth/flutter_yaml
Rename sky.yaml to flutter.yaml
2015-11-02 13:13:48 -08:00
Adam Barth
05d03e5861 Rename sky.yaml to flutter.yaml
More flutter more better.
2015-11-02 12:57:27 -08:00
Adam Barth
31e0378014 Routes shouldn't be interactive when animating out
This patch introduces the notion of a ModalRoute that puts up a modal barrier
and makes the route invisible to hit testing when its animating out. This patch
also uses this mechanism in a number of places (including PageRoute). There are
still a few more cases to convert, but that's work for a future patch.

Fixes #1684
2015-11-02 12:48:11 -08:00
Adam Barth
57fc7430f9 Rename Icon's type paramter to icon
The name of the parameter wasn't consistent with IconButton or DrawerItem, etc.

Fixes #1871
2015-11-01 11:25:17 -08:00
Viktor Lidholt
d61e39c739 Fixes navigation back to main menu in demo game 2015-10-30 16:13:26 -07:00
Adam Barth
1d3a7dae53 Switch to Navigator2 2015-10-29 23:18:56 -07:00
Hixie
51c851e3d5 Rev package versions for release.
sky_engine is now at 0.0.45
sky_services is now at 0.0.45
flx is now at 0.0.4
flutter is now at 0.0.15
flutter_sprites is now at 0.0.12
2015-10-29 14:41:56 -07:00
Adam Barth
92b9815ff0 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
69f0e989a5 Merge pull request #1862 from abarth/navigator2
Add an initial implementation of Navigator2
2015-10-28 17:00:12 -07:00
Hans Muller
8a32341cbe Merge pull request #1860 from HansMuller/tabs
Correct TabNavigatorWidth, tabs.dart example
2015-10-28 16:40:50 -07:00
Adam Barth
a694f51e99 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
22313d59df Correct TabNavigatorWidth, tabs.dart example 2015-10-28 16:26:22 -07:00
Hixie
46f19afade 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
Ian Hickson
7aebaa00f4 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
Collin Jackson
dbc0cfd116 Media query class for querying viewport information 2015-10-28 12:34:57 -07:00
Hixie
c1de88233e 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
Adam Barth
939835ea49 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
1e5b25be8c 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
4bbd3d543c Switch clients from ui.view to ui.window 2015-10-28 07:16:56 -07:00