432 Commits

Author SHA1 Message Date
Adam Barth
2c21d795a4 Deploy @checked (#6244)
This patch adds `@checked` everywhere is needed to remove the
`strong_mode_invalid_method_override` strong mode error.
2016-10-07 11:27:54 -07:00
Jason Simmons
90504b122c Adjust the IconButton constraint to match its size (#6226)
Fixes https://github.com/flutter/flutter/issues/5763
2016-10-06 10:13:53 -07:00
Matt Perry
2fd78dcc53 Add multiline support to Input and friends. (#6155)
Fixes https://github.com/flutter/flutter/issues/6154
2016-10-05 15:46:48 -04:00
Hans Muller
e2ff169d5b Have the scale gesture callback uses details objects (#6204) 2016-10-04 12:44:36 -07:00
Hans Muller
596637ade4 Added scale-to-zoom gesture support to the Gallery grid demo (#6185) 2016-10-03 16:08:15 -07:00
Chris Bracken
57d6cc4299 Use platform-specific back icon in Scaffold (#6182) 2016-10-03 15:34:15 -07:00
Adam Barth
8ec4f22941 Add landscape time picker (#6173)
Fixes #988
2016-10-03 12:00:49 -07:00
Dragoș Tiselice
42f773c327 Fixed DragTarget calling setState after dispose. (#6150)
DragTarget would call setState after it was disposed in didLeave
and didDrop. Fixes #6128.
2016-09-30 13:42:26 -07:00
Adam Barth
3b952d8456 Update engine (#6146) 2016-09-29 22:47:20 -07:00
Adam Barth
c9eda86b0e Switch to PointerData API (#6131)
Now dart:ui does the decoding of the pointer data itself, which means we don't
need to do it in the framework.
2016-09-29 21:25:20 -07:00
Adam Barth
2a530f78d4 Update engine.version (#6144) 2016-09-29 18:16:11 -07:00
Hans Muller
6a1ac731d8 PopupMenuButton menus inherit the button theme (#6132) 2016-09-29 15:34:12 -07:00
Adam Barth
a3b06f31da Switch date picker to using a custom Dialog
Rather than removing all the padding from an AlertDialog, we now just use
Dialog directly for the date picker.
2016-09-29 08:59:22 -07:00
Ian Hickson
e01592a0c0 Fix globalToLocal and update spinning_mixed (#6035)
* globalToLocal was just broken when there was a rotation and a
  translation at the same time. This fixes that and adds a test.

* update graphic used by spinning_mixed since the old one went 404.

* simplify some of the code in the demo.

* fix MatrixUtils.transformPoint to be consistent with how we transform
  points elsewhere.

* stop transforming points elsewhere, just use
  MatrixUtils.transformPoint.

* make the Widget binding handle not having a root element.

* make the spinning_mixed demo update its widget tree.
2016-09-28 01:06:32 -07:00
Adam Barth
23b4318e1a Revert "Roll the engine (#6099)"
This version of the engine crashes on startup.

This reverts commit a426b6b3c8df5cdd9c0105d8361ce3ce36864d60.
2016-09-27 16:12:16 -07:00
Adam Barth
dc4a1638ee Specialize AlertDialog and SimpleDialog (#6098)
We were trying to cram too much functionality in to the Dialog widget. Now we
have AlertDialog and SimpleDialog to cover to two different kinds of dialogs in
the spec.
2016-09-27 15:44:11 -07:00
Jason Simmons
a426b6b3c8 Roll the engine (#6099) 2016-09-27 13:01:57 -07:00
Adam Barth
0734edbeb0 Dialogs shouldn't scroll their headers or buttons (#6082)
Rather than scrolling the entire contents of the dialog, we should instead
scroll only the part between the title and the button bar.

Also, polish up the padding in the simple dialog demo.

Fixes #6057
2016-09-27 09:20:33 -07:00
Adam Barth
4c5084cbd2 Update clip geometry during hitTest if needed (#6091)
The code previously assumed that paint would be called before hitTest, but that
assumption isn't valid because RenderOpacity hit tests its children without
painting them.

Fixes #6089
2016-09-27 09:17:18 -07:00
Adam Barth
55f48f72c9 Persistent bottom sheet should not overlap app bar (#6076)
The spec forbids persistent bottom sheets from overlapping the app bar. There
are also some fancy scroll-linked effects that we're supposed to do with
persistent bottom sheets, but those will need to wait for another patch.

Fixes #5143
2016-09-26 14:02:01 -07:00
Adam Barth
8c048ec944 Polish SnackBar padding (#6071)
Previously, we were getting double padding: both inside and outside the button.
This patch moves all the padding inside the button so that the whole region is
hittable and the text is positioned correctly.

Fixes #6059
2016-09-26 12:01:23 -07:00
Ian Hickson
9e673853e5 Turn off AnimationControllers when not in use (#5902)
This requires all AnimationController objects to be given a
TickerProvider, a class that can create the Ticker.

It also provides some nice mixins for people who want to have their
State provide a TickerProvider. And a schedulerTickerProvider for those
cases where you just want to see your battery burn.

Also, we now enforce destruction order for elements.
2016-09-26 10:57:10 -07:00
Ian Hickson
78c74116a9 LayoutBuilder + GlobalKey + setState assert (#6068)
This silences an assertion that fired when reparenting a widget with a
global key inside a LayoutBuilder callback when that callback also
happened to call setState (directly or indirectly) on that widget.

Normally such setStates are considered ok since we know we haven't
cleaned that subtree yet, but we were not correctly handling the case
where the list needed resorting in that situation.
2016-09-26 10:27:53 -07:00
Adam Barth
c27b03b823 Add FittedBox (#6029)
This widget lets you apply an ImageFit to a child widget.

Fixes #5830
2016-09-23 17:40:16 -07:00
Ian Hickson
6a5e658131 Make sure to rebuild widgets even when they move (#5975)
Previously in some rather esoteric cases involving global keys reversing
relative positions we would forget to build everyone.
2016-09-22 14:44:57 -07:00
Dragoș Tiselice
3a6530d5a4 Added bottom navigation. (#5877) 2016-09-22 12:45:10 -07:00
Hans Muller
d3f540d4bd Fixed tabs fling velocity threshold (#5990) 2016-09-22 11:06:14 -07:00
Dan Rubel
8a186f3bbd tests to assert futures complete as expected (#5947) 2016-09-22 07:43:29 -04:00
Adam Barth
8e4ca4bd34 Draggable should have an affinity that selects an axis (#5985)
This structure for the API is hopefully less confusing that the previous one
(which implied that vertical drags would not trigger horizontally draggable
widgets).

Fixes #1987
2016-09-21 20:45:00 -07:00
James Robinson
a95c9fdb58 Isolate imports of generated Dart code from generated path (#5960)
This rewrites imports of various mojom.dart files from the Flutter
engine repo to instead import normal-looking dart files from the
(new) flutter_services package. This package handles exporting the
correct symbols from generated code wherever that may live.

Includes an engine roll to 3551e7a48e2e336777b15c7637af92fd7605b6c5
which contains the new flutter_services package.
2016-09-21 14:00:29 -07:00
Matt Perry
dc5e1bba36 Disallow back gestures during a page transition. (#5982)
Fixes https://github.com/flutter/flutter/issues/5973
2016-09-21 15:10:07 -04:00
Hans Muller
fc83640c88 ClampOverscrolls clamps Scrollable, not its Viewport (#5909) 2016-09-21 11:32:19 -07:00
Matt Perry
c9b08aa686 Fix a bug with how ScrollableGrid deals with padding. (#5963)
It wasn't taking padding into account when deciding which children were
visible. I modeled the solution off of the way ScrollableList handles
this.

Fixes https://github.com/flutter/flutter/issues/5522
2016-09-21 13:29:35 -04:00
Lex Berezhny
9f5eeb1bee Unittest to check Input box initial value (#5976)
Adds unit test to verify the initial value of Input widgets.
2016-09-20 20:13:30 -07:00
Hans Muller
aa9aaf2eb7 Restore Flutter gallery license page scrolling (#5934) 2016-09-20 15:13:50 -07:00
Adam Barth
51960b4482 Complete dartdocs for material/material.dart (#5941) 2016-09-20 14:44:11 -07:00
Ian Hickson
4f0eff31bc Fix crash when a RenderObject tree is rooted in a non-RenderObject environment (#5933) 2016-09-20 14:14:05 -07:00
Hans Muller
63828aab23 Underflowing LazyBlock should relayout for additional children (#5956) 2016-09-20 11:15:23 -07:00
Adam Barth
17ac73890e Add MediaQuery.textScaleFactor (#5936)
This feature is the implementation of an accessibility feature that changes the
size of text by a constant factor.

Fixes #5873
2016-09-20 09:14:48 -07:00
Adam Barth
e04135e983 Change the definition of MainAxisSize (#5931)
This property now applies only to the free space in the flex layout (i.e.,
minimize or maximize the amount of free space). Previously, the flexible
children were always allocated a size of zero when MainAxisSize was min. Now
they're allocated the same size that would be if the MainAxisSize was max.
2016-09-19 15:04:58 -07:00
Dragoș Tiselice
14054646ca Added Material steppers. (#5765)
Added a widget that gives fine control over the use of steppers.
At any single moment, one step is shown with it own controls and
content.
2016-09-16 13:22:15 -07:00
Adam Barth
3ed4960b16 Add FlexFit.loose (#5908)
Previously, flexible children were always required to fill their allocated
space. After this change, they can fit loosely into that space and not fill it.
When that happens, the remaining free space is allocated according to the
maixAxisAlignment.

Fixes #5858
2016-09-16 13:12:36 -07:00
Dragoș Tiselice
87fb075fa1 Renamed DropDown to Dropdown. (#5897)
Fixes #3208.
2016-09-15 17:38:41 -07:00
Dragoș Tiselice
8ac14f8698 Replaced FlexDirection with Axis. (#5896)
Fixes #4618.
2016-09-15 15:23:37 -07:00
Dragoș Tiselice
4259266b14 Renamed expansion panel file. (#5884)
Renamed expansion_panels.dart to expansion_panel.dart.
2016-09-15 14:16:05 -07:00
Adam Barth
179ea4a0a6 Update framework to account from engine API changes (#5887)
The engine now reports coordinates in physical pixels.
2016-09-15 13:13:42 -07:00
Ian Hickson
33794d1387 TextStyle.apply (#5879)
Also, fix an old TODO, and add a test of various things on TextStyle.

...requires an engine roll to pick up https://github.com/flutter/engine/pull/3025 and https://github.com/flutter/engine/pull/3027.
2016-09-15 07:49:44 -07:00
Ian Hickson
bb4a2e8b4c Implement detachChild for LayoutBuilder (#5860)
Fixes https://github.com/flutter/flutter/issues/5840
2016-09-15 07:47:15 -07:00
Hans Muller
4ec5144427 Scrollable should restore its viewport dimensions when it reappears (#5862) 2016-09-14 11:08:07 -07:00
Dragoș Tiselice
826d87a9b2 Made MergeableMaterial dividers animated seamlessly. (#5857)
Changed MergableMaterial to animated between states that have dividers
and those that don't in order not to have dividers that appear
unanimatedly. Fixes #5847.
2016-09-14 10:46:49 -07:00