4177 Commits

Author SHA1 Message Date
Collin Jackson
e8aa40eddd release 0.0.17 (#12590) 2017-10-17 15:42:40 -07:00
Ian Hickson
0e34c7f28c CircleBorder (#12570) 2017-10-17 13:38:06 -07:00
Ian Hickson
1f82733a3b Make BoxDecoration lerp gradients (#12451)
This still is very limited in what it can lerp, but it sets the stage for arbitrary lerps later.
2017-10-17 13:10:10 -07:00
Adam Barth
a13320253c Don't attempt to draw invisible overflow indicator (#12534)
If the flex is empty, there's no space in which to draw the overflow indicator,
so we shouldn't bother trying to draw it.

Fixes #12532
2017-10-17 11:17:08 -07:00
amirh
3d7a4eed44 Short circuit _checkUp if tap callbacks were triggered by resolve. (#12521) 2017-10-17 10:29:29 -07:00
Hans Muller
bd3e91ed98 AssetImage.obtainKey handles devicePixelRatio == null (#12564) 2017-10-17 09:27:04 -07:00
xster
9ce3ba314e Add Cupertino icon fonts helper and dependency for default template (#12559)
* add CupertinoIcons

* Use new font name convention

* review
2017-10-16 18:59:28 -07:00
P.Y. Laligand
0999fca99d Update references to the engine project. (#12515) 2017-10-13 17:16:33 -07:00
Greg Spencer
25ac924e01 Modify the MaterialButton to expand when text is scaled. (#12431)
This modifies the MaterialButton to expand vertically to fit the size of the contained child, no matter what the child widget is. It tries to be as close as possible to the minHeight constraint.

Also updated some doc comments to have headers (extra blank line after first sentence), and to wrap at 80 cols.

Addresses #12311
2017-10-13 16:07:05 -07:00
amirh
3616ebbd30 Emphasize the behavior property in GestureDetector's class doc. (#12536) 2017-10-13 13:33:39 -07:00
Michael Goderbauer
4ffa801cb1 Remove parentSemantics from semantics tree compliation (#12479) 2017-10-13 12:27:23 -07:00
amirh
32c038ee3f Add missing curly braces in icon.dart (#12529)
(post-merge followup for #12516)
2017-10-13 10:20:22 -07:00
gspencergoog
e316956888 Make tooltips scale with textScaleFactor (#12498)
Fixes #12480
2017-10-12 16:44:21 -07:00
gspencergoog
ba0618d35d Make material slider respect textScaleFactor (#12511)
Make material slider respect textScaleFactor

Fixes #5938
2017-10-12 16:43:28 -07:00
amirh
c312b3d9ae Keep Icon's subtree structure the same with and without a semanticLabel. (#12516)
* Keep Icon's subtree structure the same with and without a semanticLabel.

This avoids rebuilding the subtree when a semanticLabel is set/unset.
Also updated some doc comments.

(This is a followup on post-merge comments for #12475)
2017-10-12 13:52:55 -07:00
gspencergoog
f5cc816c54 Keep CircleAvatar from scaling the text with textScaleFactor (#12499)
Fixes #12483
2017-10-12 08:21:28 -07:00
Hans Muller
c3d56b1dad flutter_localization optional package (#12410) 2017-10-11 16:01:13 -07:00
Michael Goderbauer
f07170b45b Update Semantics for SingleChildScrollViews (#12376)
* Update Semantics for SingleChildScrollViews

* refactor

* review feedback

* added assert and comments

* doc
2017-10-11 13:07:19 -07:00
Chris Bracken
51e4e9f9a5 Rev version to 0.0.17-dev (#12489) 2017-10-10 17:41:25 -07:00
Chris Bracken
4424892c79 Version 0.0.16 (#12488) 2017-10-10 16:45:11 -07:00
Alexander Aprelev
095e6af0b8 Reroll engine to 2a84f18c795d24ba95baed360fcb58b3dc66d661 (#12487) 2017-10-10 16:27:51 -07:00
amirh
5e595d12e4 Allow specifying and a11y label for Icon widget (#12475)
* Allow specifying and a11y label for Icon widget
2017-10-10 14:04:43 -07:00
Alexander Aprelev
c38b843460 Move -referencing asserts to constructor body. (#12478) 2017-10-10 09:05:20 -07:00
Alexander Aprelev
7f5b973cb1 Revert "Roll engine after dart roll (#12473)" (#12477)
This reverts commit e7061698147e80fa53ec3ed0cf048f4d68df7d68.

This causes preview-dart-2 test failures.
2017-10-10 07:27:39 -07:00
Alexander Aprelev
e706169814 Roll engine after dart roll (#12473)
* Roll engine

* Move assert requiring 'this' from initializer to constructor body

* Update test expected message

* Relax regexp to allow wider array of dart uris
2017-10-10 06:38:51 -07:00
Alexander Aprelev
4023b7cad8 Use const for const constructor (#12464) 2017-10-09 09:29:43 -07:00
Ian Hickson
4e48a737eb Fix flex floating point error causing unnecessary striped warnings (#12424)
Also:

 * Provide a better message when you lerp from infinity to finity
   constraints.

 * Make the striped marker support RTL.

 * By popular demand, dump a warning to the console the first time
   a particular Flex overflows. (Resets on hot reload.)
2017-10-06 19:24:34 -07:00
P.Y. Laligand
21b81d902d Disable Dart analysis in Fuchsia. (#12409)
Fuchsia will soon use a newer version of the Dart analysis server which Flutter code has not been adjusted for yet.
2017-10-06 10:47:52 -07:00
gspencergoog
8d41fa7862 Adding proper accommodation for textScaleFactor in bottom navigation bar. (#12421)
This updates the bottom navigation bar to be able to handle more general widgets in the place of the label in the bottom navigation bar, so that Text with a textScaleFactor larger than 1.0 will behave nicely in a bottom navigation bar.

It also means that other widgets given instead of a Text widget for the label will work more predictably.

I also vastly simplified the layout logic, eliminating many computations that were not needed, and refactored the build function to use a separate private navigation tile widget.

Also, the color splash animations were coming from the wrong location (they were coming from far to the right of the touched widget), so that works as specified now.
2017-10-06 08:13:34 -07:00
Iiro Krankka
0a85db2958 Change PageController#nextPage & #previousPage methods to return Future when the animation completes. (#12299)
* Changed PageController #nextPage & #previousPage to return a Future after completing.

* Removed false statement about returning a Future in PageController#jumpToPage

* Added tests to make sure nextPage & previousPage return Futures.

* Tested that the Futures returned by nextPage & previousPage actually resolve.

* Renaming *pageCalled to *pageCompleted, since that's what it's actually for.
2017-10-05 21:13:27 -07:00
Alexander Aprelev
c02850b4dc Force upgrade update packages with improved update process. (#12412)
* Force upgrade update packages with improved update process.

* Update packages

* Revert "Update packages"

This reverts commit a37de26d3f4f7f5a15746ff791002625faa3d3c0.
2017-10-05 20:59:08 -07:00
Yegor
150c58303e Date picker i18n (#12324)
* formatYear

* localize date picker

* tests

* clean-ups

* address comments
2017-10-05 17:15:20 -07:00
Yegor
6ca2e5dc10 fix _debugCheckOwnerBuildTargetExists; sync localizations and tests (#12245)
* Revert "When parts of the program are changed in a hot reload, but not executed during the reassemble, warn that a restart may be needed. (#12304)"

This reverts commit 90028813a89a3de8154144e6e0f1edbe90dc2e4f.

* fix _debugCheckOwnerBuildTargetExists; sync localizations and tests

* address comments
2017-10-05 15:14:56 -07:00
Adam Barth
a30b109c9e Add RTL support to ListBody (#12414)
Fixes #11930
2017-10-05 09:45:41 -07:00
Ian Hickson
cd3715a854 Border RTL (#12407) 2017-10-05 01:12:21 -07:00
Yegor
cc3f5767f4 ThemeData: optimize by removing polymorphism and caching; fix merging (#12249)
* optimize ThemeData: make it monomorphic, memoize result

* address comments

* RLU cache; fix text theme merging

* use FIFO cache for ThemeData; use HashMap to store inherited widgets

* address comments
2017-10-04 21:50:32 -07:00
Chris Bracken
0189696e4b Roll engine to 459f722b86415da01386fe41f37bafa842f11ae8 (#12413)
Eliminates Invocation.typeArguments override recently introduced and removed in upstream Dart SDK commit:
https://dart-review.googlesource.com/c/sdk/+/10702
2017-10-04 19:44:48 -07:00
Ryan Macnak
dfa13a14f9 Roll engine to f7685ddf16ccf9e5f6c4386c23061b02ed0e37d4. 2017-10-04 14:44:44 -07:00
Michael Goderbauer
7a73ddf5c2 Make TabBarView/PageView accessible (#12386)
* Make TabBarView/PageView accessible

* review fedback
2017-10-04 10:55:44 -07:00
Ian Hickson
c314548fd7 Decoration improvements (#12356)
Documentation changes, and, in particular, the ability to lerp from
and to any decoration by lerping via null.
2017-10-03 16:10:59 -07:00
Hans Muller
528d28ba03 Add material/18n/README.md (#12359) 2017-10-03 10:10:32 -07:00
Michael Goderbauer
49499457f2 Drop invisible SemanticsNodes from tree (#12358)
* Drop invisible SemanticsNodes from tree

A node is invisible if it is outside of the bounds of the screen and if it is not merged into its (partially) visible parent.

Also in this PR: only set `wasAffectedByClip` to true if the nodes has actually been clipped.

* Fix other failing tests

* renaming

* review feedback

* more doc
2017-10-03 09:52:36 -07:00
Adam Barth
6128f48c80 Switch SlideTransition over to using Offset (#12369)
Previously, we used `Alignment`, which was difficult to understand. Now,
we just use an `Offset` scaled to the child's size, which is much easier
to understand.
2017-10-02 23:30:14 -07:00
Adam Barth
31b6ac049c Restore FractionalOffset operators (#12368)
These now act the way they used to act if both operands are
FractionalOffsets.  Once you mix in some other AlignmentGeometry
objects, everything gets converted to the AlignmentGeometry coordinate
system.
2017-10-02 21:48:24 -07:00
Ian Hickson
7bfa3c5676 FlutterLogoDecoration.lerpFrom/lerpTo with non-logos (#12360)
FlutterLogoDecoration should defer to Decoration for what to do when
it doesn't know how to lerp to/from another kind of decoration.
2017-10-02 17:32:00 -07:00
Ian Hickson
ce930db3b4 Move Border into its own file (#12364)
I'm about to add the BoxBorder and BorderDirectional classes to
this new file, but figured it would make review easier if the move
of the existing class happened first.
2017-10-02 17:06:57 -07:00
Alex
eb2518f20a fix(typo) desc of jumpToPage (#12320) 2017-10-02 16:59:26 -07:00
Alexander Aprelev
fd04d4d126 Revert "Roll flutter engine (#12307)" (#12365)
This reverts commit f6fe8dc7e3e961c067432e74f8a5fc089d7559b7.

This breaks coverage test
https://travis-ci.org/flutter/flutter/jobs/282472585
2017-10-02 16:01:09 -07:00
Michael Goderbauer
affdab1a5a Add SemanticsEvent.toString for easier debugging (#12363) 2017-10-02 15:46:22 -07:00
Alexander Aprelev
f6fe8dc7e3 Roll flutter engine (#12307)
* Roll engine

* Pick up updated engine with analyzer fix

* Add new typeArguments override

* Update engine dep

* Up dartdoc version to fix name resolution issues
2017-10-02 15:28:09 -07:00