3924 Commits

Author SHA1 Message Date
yjbanov
19a01171f2 better error message when Navigator is used with no NavigatorState in the context 2016-02-04 10:11:25 -08:00
Hans Muller
e628b2d924 Merge pull request #1596 from HansMuller/scrolling_demos
Added a flexible appbar gallery demo

Added a "Patterns/Scrolling Techniques" demo that resembles the "Flexible Space with Image" from the Material design spec - https://www.google.com/design/spec/patterns/scrolling-techniques.html#scrolling-techniques-scrolling

Demos for the other app bar arrangements are still needed.
2016-02-04 09:51:16 -08:00
Hans Muller
8741f33ebe Added a flexible appbar gallery demo 2016-02-04 09:42:23 -08:00
Adam Barth
aa6c761a1d Merge pull request #1601 from abarth/perspective
transformPoint should use Matrix4.perspectiveTransform
2016-02-03 20:43:20 -08:00
Adam Barth
ab5f012668 transformPoint should use Matrix4.perspectiveTransform
We want to normalize by w.

Fixes #1585
2016-02-03 19:56:09 -08:00
Viktor Lidholt
e60f0e68d6 Merge pull request #1494 from vlidholt/master
Adds initial version of weather to the gallery app
2016-02-03 16:03:08 -08:00
Viktor Lidholt
bfc9af5c58 Adds initial version of weather to the gallery app 2016-02-03 15:55:32 -08:00
Ian Hickson
d5e1f9c7f7 Merge pull request #1575 from Hixie/rev
rev engine
2016-02-03 15:08:20 -08:00
Adam Barth
488285f112 Merge pull request #1553 from abarth/child_view
Initial work to add Mozart child views
2016-02-03 14:21:40 -08:00
Matt Perry
fbe6779f4f Merge pull request #1539 from mpcomplete/start
'flutter start' calls 'flutter apk' if necessary.
2016-02-03 13:13:52 -08:00
krisgiesing
ac9e016a02 Merge pull request #1579 from krisgiesing/doc_tweaks
Fix formatting on AssetVendor's dart doc
2016-02-03 12:56:46 -08:00
Kris Giesing
90da69c97c Fix formatting on AssetVendor's dart doc 2016-02-03 12:46:07 -08:00
Matt Perry
5d2281b69b 'flutter start' calls 'flutter apk' if necessary.
flutter start no longer depends on a pre-built SkyShell.apk. It builds a
new one, as long as an AndroidManifest.xml exists.

We rebuild the .apk every time either AndroidManifest.xml or
flutter.yaml changes.
2016-02-03 12:21:20 -08:00
Hixie
1e3b09e4f0 rev engine 2016-02-03 11:58:05 -08:00
Devon Carew
cbb2761e5f Merge pull request #1560 from devoncarew/target_option
normalize -t --target option
2016-02-03 11:49:23 -08:00
Adam Barth
4b7d601e03 Merge pull request #1574 from abarth/service_mocker
Move ServiceMocker into flutter_test
2016-02-03 10:55:29 -08:00
Adam Barth
b303e3db48 Move ServiceMocker into flutter_test
People writing their own tests will want to mock services as well.
2016-02-03 10:46:19 -08:00
Jason Simmons
bc5786f79c Merge pull request #1555 from jason-simmons/sprite_image_info
Update flutter_sprites now that ImageResource.first returns an ImageInfo
2016-02-03 10:06:19 -08:00
Ian Hickson
517288c2dd Merge pull request #1532 from Hixie/semantics-2
Actually return a SemanticsServer service.
2016-02-03 09:50:06 -08:00
Devon Carew
31acb3f187 Merge pull request #1559 from devoncarew/more_help
add docs for -h -v
2016-02-03 09:49:22 -08:00
Hans Muller
d92f381508 Merge pull request #1558 from a14n/patch-1
Rename "Toggle Controls" to "Selection Controls"
2016-02-03 09:26:02 -08:00
Adam Barth
f30398a4c4 Initial work to add Mozart child views
This patch sketches out the basic widgets for creating Mozart child
views. We're still missing some of the machinery, so we can't quite
create child views yet, but once we supply the ViewHost and teach the
compositor how to actually display the child scenes, we'll have
something that works.
2016-02-03 09:07:11 -08:00
Devon Carew
bfb89195c3 add a hidden flag for backwards compatibility 2016-02-03 02:19:10 -08:00
Devon Carew
33874eb71f update arg reference 2016-02-03 01:07:40 -08:00
Devon Carew
b6e8118e2d normalize -t --target option 2016-02-03 00:52:07 -08:00
Devon Carew
4200378d3c add docs for -h -v 2016-02-03 00:13:12 -08:00
Alexandre Ardhuin
99b2b84d57 Rename "Toggle Controls" to "Selection Controls"
Fixes #1537
2016-02-03 09:05:37 +01:00
Adam Barth
421cd7c2fb Merge pull request #1531 from abarth/raw_keyboard_crash
RawKeyboardListener asserts if disposed without keyboard
2016-02-02 20:52:30 -08:00
Adam Barth
12507d1bdd RawKeyboardListener asserts if disposed without keyboard
We need to check whether we're attached to the keyboard before trying to
detach from the keyboard.
2016-02-02 20:02:23 -08:00
Jason Simmons
6f6584b6da Update flutter_sprites now that ImageResource.first returns an ImageInfo 2016-02-02 17:07:26 -08:00
Hans Muller
58156e1849 Merge pull request #1540 from HansMuller/new_toolbar
AppBar extensions for Scaffold et al

Add support for the appbar behavior described in the "Flexible space with image" section of https://www.google.com/design/spec/patterns/scrolling-techniques.html#scrolling-techniques-scrolling.

For now, an "AppBar" is a toolbar, a toolbar and a tabbar arranged in a column, or a toolbar and flexible space widget arranged in a stack with the toolbar on top. The AppBar occupies the space behind the status bar, i.e. its origin is at the top of the screen.

The Scaffold listens for scroll notifications from a Scrollable descendant identified by scrollableKey. Scrolling downwards from the top causes the Scaffold to shrink its appBar's height from appBarHeight to 0. Scrolling downwards when the appBar isn't visible causes its toolbar to reappear. Applications can specify the flexibleSpace - essentially the appbar's background - with a WidgetBuilder. The contents of the flexible space can track the appbar's relative height with Scaffold.of(context).appBarAnimation, an animation that's 0.0 when the appbar is fully visible and 1.0 when it has disappeared.

Added FlexibleSpaceBar to simplify building a flexible space widget that animates a title and a background image per the Material Design spec.

To enable the new behavior, specify the following Scaffold properties:

```
return new Scaffold(
  appBarHeight: appBarHeight,
  scrollableKey: scrollableKey,
  appBarBehavior: AppBarBehavior.scroll,
  ...
)
```

AppBarHeight should be greater than kToolBarHeight. Typically it will be much greater.

ScrollableKey identifies the Scrollable that the Scaffold will track.

AppBarBehavior.scroll indicates that the appbar will resize in response to scrolling.

The Scrollable must be a descendant of the Scaffold body and must specify the same scrollableKey as well as a padding value that accounts for the appbar's height. For example:

```
  body: new ScrollableViewport(
    key: scrollableKey,
    child: new Padding(padding: new EdgeDims.only(top: appBarHeight)
    ...
   )
```

Also:
- Added scrollableKey and scrollablePadding to MaterialList. They're applied to the ScrollableList child.
- Fixed the padding support in ScrollableList.
- Added a foregroundAlpha property to ToolBar. It controls the opacity of the icon and text themes' colors.
- Removed the toolbar's "bottom" widget property. Use the flexibleSpace WidgetBuilder instead.
2016-02-02 16:43:33 -08:00
Hans Muller
6bc65e0373 Add support for the appbar behavior described in the "Flexible space with image" section of https://www.google.com/design/spec/patterns/scrolling-techniques.html#scrolling-techniques-scrolling. 2016-02-02 16:32:39 -08:00
Hixie
cca1cb2fa1 Actually return a SemanticsServer service. 2016-02-02 13:32:14 -08:00
Adam Barth
687ff57e24 Merge pull request #1528 from abarth/layer_offset
Viewport fails to clip its AssetImage child
2016-02-02 13:16:06 -08:00
Adam Barth
167fbced06 Viewport fails to clip its AssetImage child
We were getting confused about our layer tree offsets, which caused us
to set an incorrect cull rect for the recording inside a viewport.

This patch does away with layer tree offsets almost entirely. We now use
them only at repaint boundaries, which is where we want the layer tree
to be mutable.

Fixes #1460
2016-02-02 13:04:55 -08:00
Yegor
9bf4016eff Merge pull request #1527 from yjbanov/contributing-update-2
tell people to submit code after LGTM
2016-02-02 12:22:43 -08:00
krisgiesing
aef96b805c Merge pull request #1505 from krisgiesing/image_scaling
Add scale awareness to images
2016-02-02 12:21:14 -08:00
yjbanov
628702392b tell people to submit code after LGTM 2016-02-02 12:20:48 -08:00
Adam Barth
b89d81a998 Merge pull request #1522 from abarth/editing_mojom
Update to new editing.mojom
2016-02-02 12:14:19 -08:00
Adam Barth
6f1d4df3bd Update engine 2016-02-02 12:13:55 -08:00
Kris Giesing
5161d12004 Give scale parameter to ImageCache and NetworkImage 2016-02-02 12:11:04 -08:00
Devon Carew
2981fc404d Merge pull request #1526 from devoncarew/start_paused
add --start-paused,--debug-port flags
2016-02-02 12:05:12 -08:00
Devon Carew
b780c07622 add --start-paused,--debug-port flags 2016-02-02 11:38:56 -08:00
Yegor
6d9f430853 Merge pull request #1525 from yjbanov/contributing-update
add section on submitting code in CONTRIBUTING.md
2016-02-02 11:21:31 -08:00
yjbanov
15e7bdb549 add section on submitting code in CONTRIBUTING.md 2016-02-02 11:17:16 -08:00
Yegor
a4e30ad9b1 Merge pull request #1517 from yjbanov/overflow-box-debugFillDescription-1487
add debugFillDescription to OverflowBox
2016-02-02 10:46:21 -08:00
yjbanov
4c823cdb97 add debugFillDescription to OverflowBox 2016-02-02 09:40:13 -08:00
Adam Barth
fade0dc097 Update to new editing.mojom
Now the keyboard is responsible for maintaining the state of the text
field.
2016-02-02 09:04:27 -08:00
Collin Jackson
3094348ad4 Merge pull request #1483 from collinjackson/engine_safety
In addition to checking for the existence of the engine, ensure that it’s the correct version
2016-02-01 16:10:03 -08:00
Kris Giesing
d4cc315cc4 Update example to use ImageInfo 2016-02-01 14:04:15 -08:00