9552 Commits

Author SHA1 Message Date
Ian Hickson
c13ed90c87
TextStyle is not an enum (fixes crash with InputDecorator.toString) (#12835) 2017-11-02 12:19:58 -07:00
Ian Hickson
d402d40aa6
Up a timeout to reduce the number of flakes. (#12837) 2017-11-02 12:19:43 -07:00
Michael Goderbauer
1d4607ff04
Identify text fields as such to a11y (#12804)
* Identify text fields as such to a11y

* focus

* make travis happy

* review comments
2017-11-02 10:08:56 -07:00
Mikkel Nygaard Ravn
005a8e4c8e
Add backend texture support (eg video, camera) (#12525) 2017-11-02 14:23:28 +01:00
Adam Barth
3914214641
Fix analyzer warnings (#12840) 2017-11-01 22:31:29 -07:00
5u3it
c608e666ad Material scaffold to have simultaneous left-and-right drawers (#12686)
Adds `Scaffold#endDrawer` property to supply a second drawer to a Scaffold.
2017-11-01 21:35:28 -07:00
Greg Spencer
05e10633f2
Adding proper accommodation for textScaleFactor in chips, and StadiumBorder border. (#12533)
In order to allow chips to be properly drawn when they expand in size (without
using IntrinsicHeight), I needed a BoxDecoration shape that would be dependent
upon the rendered height of the widget. This seemed to be pretty generally
useful, so I added a new ShapeDecoration called StadiumBorder. It uses the
minimum dimension to adjust the BorderRadius of a rounded rect in the shape
decoration.

I also converted some uses of BoxShape to be case statements, updated the
chips to use the StadiumBorder decoration, and updated some of the metrics to match
the Material spec, as well as implementing lerping to and from StadiumBorder.
2017-11-01 19:37:02 -07:00
Hans Muller
5c1320e5b9
Validate the @foo resources in material_en.arb (#12824) 2017-11-01 16:14:10 -07:00
Michael Goderbauer
e023e89b8e
Add sample code for describeSemanticsConfiguration (#12830) 2017-11-01 15:49:28 -07:00
Chris Bracken
83df7bdd0f
Update Dart package dependencies (#12829) 2017-11-01 15:28:46 -07:00
Ian Hickson
8fd20b5deb
Text Painting Fuzzer (#12813)
Various improvements (in particular a new painting fuzzer) to the text manual test.

Some additional documentation.

A fix to Stack to remove an LTR bias: make unpositioned children apply "alignment".

Some more debugging information on RichText and Text.

A fix to the flutter tool to not crash when an RPC call throws an exception.
2017-11-01 15:04:43 -07:00
Yegor
f4b0ccd9fd
Use alwaysUse24HourFormat when formatting time of day (#12517)
* alwaysUse24HourFormat in MediaQuery and time picker

* docs; dead code

* address some comments

* MaterialLocalizations.timeOfDayFormat is the single source of 24-hour-formattedness

* Make TimePickerDialog private again

* wire up MediaQueryData.fromWindow to Window
2017-11-01 14:52:28 -07:00
Michael Goderbauer
82dbd128ae
Roll engine to 88cf09ffe664253e8835dbbef2c2243484f59cb4 (#12823) 2017-11-01 13:43:26 -07:00
Todd Volkert
111c4ea119
Roll engine to d6dd5b10d93e8c9f18c9dfd6af91e4c76d896441 (#12822) 2017-11-01 13:15:53 -07:00
Michael Goderbauer
15f0146866
Add missing dart docs to semantics-realted members. (#12821)
Other missing dart docs have been added in https://github.com/flutter/flutter/pull/12813.
2017-11-01 12:55:06 -07:00
Roberto Scaramuzzi
80e159d469
Add acceptNotification parameter to RefreshIndicator and OverscrollIn… (#12716)
* Add acceptNotification parameter to RefreshIndicator and OverscrollIndicator

* Various fixes suggested by reviewer

* Fixed lint errors
2017-11-01 10:29:37 -07:00
Hans Muller
7987dfe965
Revised the English translation definitions (#12812) 2017-11-01 10:19:43 -07:00
amirh
6161d54eb6
Move AbstractNode to lib/foundation. (#12789)
(in preparation for moving the semantics stuff out of rendering)
2017-11-01 09:24:30 -07:00
Chris Bracken
b102007664
Roll engine to ddd51597d09b35af63b29ecab33519ac78bf23c3 (#12814) 2017-11-01 09:07:06 -07:00
Yegor
41bd66f210
remove locale "sd" (not supported by ICU/CLDR); unify localizations script options (#12803)
* remove locale "sd" (not supported by ICU/CLDR); unify localizations scripts CLI

* address comments
2017-10-31 20:23:58 -07:00
Chris Bracken
e43eab656d
Roll engine to 277bfe66f0cd0aae9ef73f2e6e19f9657f03f36c (#12808) 2017-10-31 15:51:32 -07:00
Michael Goderbauer
4d9fbe78d7
Add a custom semantics sample (#12742)
* Add a custom semantics sample

* typo

* Review comments
2017-10-31 15:36:00 -07:00
Chris Bracken
722fa86919
Roll engine to 5b3e178bfee8b867845e111350a7985688f6b7c4 (#12807) 2017-10-31 15:22:05 -07:00
Michael Goderbauer
9184dfba14
Support value announcement for increase/decrease (#12741)
* Support value announcment for increase/decrease

* ++

* review comments about docs
2017-10-31 14:22:33 -07:00
Ian Hickson
e1174eb0f2
TextPainter RTL (#12791) 2017-10-31 10:39:34 -07:00
Yegor
19227a9988
fix miscellaneous typos in dartdocs (#12801)
* fix miscellaneous typos in dartdocs

* moar typos
2017-10-31 09:17:16 -07:00
Jason Simmons
cb2cfac0eb
Check for presence of an asset directory before accessing it (#12790)
Fixes https://github.com/flutter/flutter/issues/12460
2017-10-30 17:04:30 -07:00
Jason Simmons
1affb4237a
Remove the diagnostic server from flutter_tools (#12771) 2017-10-30 15:53:04 -07:00
Jason Simmons
2e97ee4015
roll engine (#12787) 2017-10-30 15:23:45 -07:00
Adam Barth
21145144e9
Don't collect usage data during Fuchsia build (#12780)
Previously, the usage analytics would generate a write to the user's
HOME directory during the Fuchsia build. We're tightening down the
environment in which we run the Fuchsia build, and these writes are now
more obvious.

This patch removes the usage analytics during the Fuchsia build,
avoiding the write to the user's HOME directory.
2017-10-30 12:28:31 -07:00
Michael Thomsen
50db9478e3
Clarify how to unconfigure with flutter config (#12733) 2017-10-30 11:12:12 +01:00
Chris Bracken
acdbe45670
Report error on iOS non-release archive builds (#12773)
Archive builds for upload to iTunes Connect should always be built in
release mode, not doing so results in crash on startup.

Bug: https://github.com/flutter/flutter/issues/12086
2017-10-27 18:23:50 -07:00
Yegor
9b5d663efa Upgrade intl: use the new API for locale data and localized numerals (#12736)
* upgrade intl data; use local numerals in date picker

* use the shiny new public intl API

* address comments
2017-10-26 13:42:49 -07:00
Yegor
89a4a1384c unpin linter version, skip the broken 0.1.37 version (#12737) 2017-10-26 12:39:07 -07:00
Yegor
154f2e5402 Reapply #12700 but keep linter pinned at 0.1.35 (#12735)
* Revert "Revert "fix --force-upgrade script; upgrade to the latest package versions (#12700)" (#12729)"

This reverts commit 7f0d4f4caae30d20670a8f3272fa1c70170ace8a.

* keep linter pinned at 0.1.35
2017-10-26 09:55:36 -07:00
Michael Goderbauer
e3327af22a Add option for custom actions to Semantics widget (#12695)
* Add option for custom actions to Semantics widget

* review comments

* review comment
2017-10-25 22:14:12 -07:00
Ian Hickson
311b57be42 Revert "Revert "nav bar font styles are special, do not inherit (#12578)"" (#12679)
* Revert "roll engine (#12660)"

This reverts commit 048bc5e0f6fe96d07bc7777792e31f96f855d5da.

* Revert "FittedBox RTL (#12662)"

This reverts commit 05a22fe0ab2e74635db6628a7fc125e1a1f20203.

* Revert "Revert "nav bar font styles are special, do not inherit (#12578)" (#12661)"

This reverts commit 662b66848562df022dcf95134b61e9958a5a74f4.
2017-10-25 17:52:18 -07:00
Yegor
7f0d4f4caa Revert "fix --force-upgrade script; upgrade to the latest package versions (#12700)" (#12729)
This reverts commit 5b3575006e52ce3f2df2ee319bdaab0b5750dea2.
2017-10-25 17:08:08 -07:00
Yegor
5b3575006e fix --force-upgrade script; upgrade to the latest package versions (#12700)
* fix updrade script; upgrade to the latest package versions

* exclude special dependencies from transitive closure

* fix stack trace handling in flutter_test due to stack_trace change

* change type on _emptyStackTrace
2017-10-25 16:12:43 -07:00
amirh
aff731c0a6 Add an AlignTransition widget (#12724) 2017-10-25 15:32:46 -07:00
Phil Quitslund
2b2b3ab516 Use a package URI in test template import. (#12723)
Use a `package:` import when referencing source under test in test template.

This is the prefered style and plays nice w/ automated refactoring.

See: https://github.com/flutter/flutter-intellij/issues/1429
2017-10-25 14:53:46 -07:00
amirh
3365b01f9a Add button semantics to CupertinoButton (#12715)
fixes #11992
2017-10-25 14:28:32 -07:00
Alexander Aprelev
cbfed1960f Roll engine to ec19da1c8098b321672a3770ec0b4e84bd0621e9 (#12703) 2017-10-25 07:18:09 -07:00
Alexandre Ardhuin
c9b94e1412 enable lint prefer_const_constructors_in_immutables (#12693)
* enable lint prefer_const_constructors_in_immutables

* remove LabeledGlobalKey._
2017-10-25 11:20:36 +02:00
Alexandre Ardhuin
28366002d9 enable lint prefer_foreach (#12674)
* enable lint prefer_foreach

* fix tests
2017-10-25 08:25:44 +02:00
Alexandre Ardhuin
872d83a3c5 enable lint prefer_conditional_assignment (#12694) 2017-10-25 08:18:26 +02:00
Chris Bracken
d69fcea1a8 Use Mountain View/Cupertino terms in drawer on iOS (#12699)
Use our platform identifiers rather than OS names for the platform
switcher radio buttons in the drawer as noted in section 2.3.10 of the
App Store review guidelines.

See: https://developer.apple.com/app-store/review/guidelines/
2017-10-24 18:11:10 -07:00
Jeff McGlynn
021a268852 Add a pageSnapping parameter to PageView (#12596)
* Add a pageSnapping parameter to PageView

Setting the pageSnapping property allows extending the PageView scroll
behavior, such as custom scroll animations or custom scroll bars.

* Apply pageSnapping CR feedback

- Remove _kNonSnappingPhysics, use null instead.
- Minor code style fixes.
- It turns out that the forth state is Arkansas, not California.
2017-10-24 17:09:33 -07:00
Greg Spencer
ea679171e5 Add Material character counter to TextField. (#12648)
This adds an optional character counter and maxLength parameter to the TextField, as described in the Material Design Spec.

The counter text and style in the input decorator may be specified, but will default to the "right thing" if not specified, where the "right thing" is a counter that looks like "3 / 10" (if there are three characters entered into a field where maxLength is set to 10).

To limit the number of characters entered, I created a LengthLimitingTextFormatter that will limit the number of characters (Unicode runes) in the input, which can be used independently. The formatter is applied after the other formatters supplied (if any). Even if there is no decorator, the text field will limit the number of characters input if maxLength is set.

If maxLengthEnforced is set to false (it defaults to true), then the max length will not be enforced. In that case, if the text exceeds the length, then the counter will turn red, and it will make the divider turn red.
2017-10-24 14:49:39 -07:00
Michael Goderbauer
c3e049613d Support for accessibilityHint and accessibilityValue (#12677)
* Support accessibility labels and hints

* more tests

* ++

* review comments

* fix merge

* test fix
2017-10-24 11:17:51 -07:00