Commit Graph

8413 Commits

Author SHA1 Message Date
Mikkel Nygaard Ravn
d1f446e559 Support flutter run/build of module on Android (#20197) 2018-08-04 13:52:09 +02:00
Ian Hickson
75960f35d4 Cleanup in localizations code (#20018)
The following changes are made by this PR:

 * Translation bundles now implement MaterialLocalizations directly,
   and are public so that they can be directly extended.

 * The list of supported languages is now a generated constant.

 * The icuShortTimePattern/TimeOfDayFormat values are now pre-parsed.

 * Various other changes for consistency with the style guide and the
   rest of the codebase, e.g. the class names don't use `_`, the
   `path` library is imported as such, more dartdocs, fewer `//
   ignore`s, validation using exceptions.

This reduces our technical debt benchmark.
2018-08-03 16:41:21 -07:00
Ian Hickson
a96fb44911 Increase the precision of the performance benchmarks. (#20159) 2018-08-03 16:41:06 -07:00
liyuqian
9ffa1c5174 Add Clip enum to Material and related widgets (#18576)
See details in our proposal for this breaking API change and #18057. This PR setup all code paths to allow the change but doesn't change the clip behavior by itself. We'll change `defaultClipBehavior` from `Clip.antiAlias` to `Clip.none` in the following PR to change the clip behavior and update tests.
2018-08-03 09:56:23 -07:00
Christian Mürtz
ad163749b7 Extend InputDecoration with prefix/suffix padding (#19514)
Add widget valued prefix and suffix properties to InputDecoration.  These new properties are alternatives to prefixText and suffixText.
2018-08-03 09:51:34 -07:00
Mikkel Nygaard Ravn
8dd06a1190 Revert " Support flutter run on Android module project (#19600)" (#20182)
This reverts commit cacd291c5c.
2018-08-03 17:10:17 +02:00
Sarah Zakarias
cacd291c5c Support flutter run on Android module project (#19600) 2018-08-03 15:13:28 +02:00
amirh
60d223c20c Support touch in AndroidViewController. (#19907)
Adds a sendMotionEvent method to AndroidViewController.
2018-08-02 16:33:48 -07:00
Ian Hickson
a2ca14d71e Revert "Reduce noise on the memory benchmarks" (#20158)
* Revert "Add pub cache, artifacts, pkgs to Cirrus cache (#20080)"

This reverts commit 07e93b385c.

* Revert "Reduce noise on the memory benchmarks (#19630)"

This reverts commit 8eb5cb7dc0.
2018-08-02 13:56:44 -07:00
Ian Hickson
8eb5cb7dc0 Reduce noise on the memory benchmarks (#19630)
- Check memory usage in release builds, not profile.
- Use multiple runs and average the results.
2018-08-02 12:22:15 -07:00
Jonah Williams
1f7082dbd8 remove const (#20151) 2018-08-02 10:37:17 -07:00
Jonah Williams
55c7e6e3f8 Support customizing standard accessibility action hints on Android. (#19665) 2018-08-02 10:20:47 -07:00
Mikkel Nygaard Ravn
651c5ab374 Fix latent type error in Flutter manifest (#20143) 2018-08-02 19:16:32 +02:00
asiva
35d50a0e16 Fix issues found running tests
//mobile/flutter/tests/app:basic_runner_test_*
during a google3 roll.

The following exception was being thrown

_TypeError: type 'String' is not a subtype of type 'File'

```
8)
<asynchronous suspension>
utter_command.dart:347:18)
<asynchronous suspension>
/flutter_command.dart:282:33)
<asynchronous suspension>
xt.dart:142:29)
<asynchronous suspension>
2018-08-02 08:03:03 -07:00
Mikkel Nygaard Ravn
b280074815 Move async from member access to construction (#20035) 2018-08-02 14:12:25 +02:00
Alexandre Ardhuin
eda03e2586 re-re-enable lint unnecessary_const (#20103) 2018-08-02 12:02:32 +02:00
Michael Goderbauer
02e9afef64 Der Datumsauswahldialog spricht jetzt deutsch (#20115) 2018-08-02 01:13:53 -07:00
Aart Bik
724b92499e Dart SDK roll for 8/1/2018 (#20120)
* Dart SDK roll for 8/1/2018

Dart SDK roll and disabling of return warnings as errors.

List of commits included in this roll:

8bad5c7b29 [vm/compiler] Non-speculative X64 long division/remainder.
918cda18c5 Add docs about sourcemap extensions
329e029bd6 Fixes dart-lang/sdk#34035
12326c10e1 Store constructor field initializera when the target is not a field.
50da4b8d92 Skip ShadowInvalidFieldInitializer while resynthesizing constructor initializers.
8810b6ecc7 Translate kernel.Instantiation in constant expressions.
cb7341fceb Initial support for inlining-data in source-maps.
4206131030 Fix tracking of onStep position of arguments to new expression
384b0a9a73 Issue 34038. Fix resynthesizing imports when mixed with exports.
ba7dbcf412 Update the test output processor to produce more useful analysis
4b2ee8e9a5 Improve catch clause recovery
66500de4dc More fixes to the CFE integration tests
3f2251986d CC sra also in changes to compiler files and tests
4734c55882 Report error on unsupported operators
00e3109368 [VM] Adjust flags for creating depfiles
07c462b471 [vm] Refactoring: extract BaseFlowGraphBuilder to a separate file
ff9167ff7b Fix parseDirectives to recognize metadata
079bebb78b [ VM ] Added missing token position for assert statements
174649b9be [gardening] Update status of dissasemble_test on Windows
8c5aca7d4d Remove the Factory interface
3dc201e168 Update ChangeBuilder to not include empty edits (Take 2)
18047b2757 Refactor test.dart by changing class Configuration to TestConfiguration
7373d38a31 Update status for Dart2js minified CSP on Chrome with fast startup
61148eade8 Update mixin-declaration feature specification.
a98feb0f01 [VM interpreter] Fix exception handling. Convert bytecode indices to pc offsets ....
da2ed2fd59 Don't ignore runtime cast failures on Map<K,V>.
3d8ca8e566 [gardening] Increase debug app-jitk timeout
0313f7bd66 [gardening] Update status file for failing test
6c39bc38f3 Clear ShadowX references that are not required after compilation.
05b9bbd2b5 Remove the dart1 version of the analysis server snapshot.
9107399190 Add back in the analysis server training.
9fb6c09015 Store reference/type for invalid types.
21db860271 Remove non-strong dart2js builders from test_matrix.json
2e7b0a13f1 Add support for accessing all of the created contexts
73663ae7c6 Allow void on the RHS of null coalescing expressions
17cb6d95d1 Don't remember TypeEnvironment in resolution results.
72960de5f9 [VM] Fix one more place where bound error allocation happened on BG thread in new space
6ad79ff4bd Update status file for tests passing under CFE
23ba527735 [VM] Ensure to alloate bound errors in old space on BG compiler
fe8052428b Remove CONTENT_MODIFIED from spec/test for getSignature
c4c847a45c Revert "[CQ] Remove pkg-linux-release from the CQ trybots until it is fixed"
beaf05efa3 [vm] When generating JITDUMP also dump IR and attach it as source to code.
24158b773d [vm/compiler] Do not LICM LoadStaticField for uninitialized fields.
68bfaf3ac3 [vm/compiler] Avoid crashes when canonicalizing unreachable AssertAssignable.
5a45b2a62b [infra] Upgrade homebrew dependencies to work on Dart 2
8e287dc037 [VM] Only add direct implementor when reading script snapshots if ....
6e81d74fcc [VM] Optimize generation of type testing stubs in JIT mode.
058510eeab fix #28233, add hint for missing returns to function expressions
4482d13ff7 [vm/compiler] Bug fix in 64-bit MOD (%) operator.

* Try ignore instead of commenting out.

* Also disable this in package analysis options.
2018-08-01 21:57:53 -07:00
Jonah Williams
ffdd6e1bf1 Toggle whether label or hint contribute to text field semantics when unfocused/focused (#19790) 2018-08-01 21:02:40 -07:00
amirh
ed533e9033 Split GoldensClient out of flutter_goldens.dart (#20102)
This enables using GoldensClient from the flutter driver file for the
embedded Android views test.

flutter_goldens.dart has a transitive dependency on dart:ui so it cannot
be included in non Flutter apps. Splitting it out allows us to use it
from driver tests.

This also removes the visibleForTesting annotation from GoldensClient.
2018-08-01 17:03:47 -07:00
Natalie Sampsell
506cf3cb88 Added ability to use custom colors for SegmentedControl (#20005) 2018-08-01 15:26:30 -07:00
jslavitz
d2ab29d25e Drawer fix (#20015)
* Drawer fix

* fixed nits

* fixed nits

* fixed nits

* final change

* Drawer fix final
2018-08-01 10:14:25 -07:00
Danny Tuppeny
93705691a4 Skip tests that are expected to fail with timeouts (#20074)
* Skip tests instead of expecting failure, because expected failure = timeout which is slow

Some of these tests are known to fail and were coded to expect it; however because the failure is a timeout it's just dragging out test runs (shortening timeouts will make the tests flakier).

* Make it easier to find skipped tests

* Change SKIP to TODO
2018-08-01 17:50:38 +01:00
Ryan Macnak
6d92151f61 [gn] Be explicit about Dart sources. 2018-08-01 09:33:03 -07:00
Devon Carew
e816f64bf2 remove the option to pass in the --no-preview-dart-2 flag to analysis (#20041)
remove the option to pass in the --no-preview-dart-2 flag to analysis
2018-07-31 19:15:11 -07:00
Jonah Williams
7ba2a84af1 roll engine to 91ff524e63298a2d0e15c2a0d47e0a005524c51c (#20055) 2018-07-31 18:15:37 -07:00
Natalie Sampsell
4fd6188d48 Fix SegmentedControl accessibility (#19994) 2018-07-31 16:56:20 -07:00
Greg Spencer
ab9f17cbbe Adding curve animations to documentation. (#19681)
Enables animated curve diagrams in the documentation, replacing the static images.
2018-07-31 16:32:42 -07:00
xster
35b55d51a8 Add image stream error handling mechanism (#18424) 2018-07-31 14:17:44 -07:00
Jonah Williams
e9c8e36bde When dispatching a semantic event, check if the node has been merged with parent (#20020) 2018-07-31 10:43:56 -07:00
sir-boformer
63098f2bc8 Apply curved animation in AnimatedOpacity (#19620)
Fixes #19617
2018-07-31 09:58:50 -07:00
Danny Tuppeny
12eff1d5da Change from .first to .single to ensure this (#19981) 2018-07-31 08:05:24 +01:00
xster
cb03ca1d9a Semantics for CupertinoTabBar (#19924) 2018-07-30 23:37:54 -07:00
Jonah Williams
5b30b393a8 make sure bottom nav bar always contributes labels (#19934) 2018-07-30 21:06:31 -07:00
Ian Hickson
acf4b6c1aa Clean up startProgress logic. (#19695) (#20009)
Disallow calling stop() or cancel() multiple times. This means that
when you use startProgress you have to more carefully think about what
exactly is going on.

Properly cancel startProgress in non-ANSI situations, so that
back-to-back startProgress calls all render to the console.
2018-07-30 16:58:07 -07:00
Jonah Williams
ee396272d3 Fix dropdown button semantics (#19932) 2018-07-30 15:36:26 -07:00
David Shuckerow
f844fadaf3 Reorderable list widget and Material demo (#18374) 2018-07-30 15:21:00 -07:00
xster
cded7efbd0 Fix CupertinoSwitch accessibility (#19927) 2018-07-30 11:18:32 -07:00
Jonah Williams
dfe5b591a6 Increase time picker clock touch targets to 48 by 48 (#19936) 2018-07-30 10:46:16 -07:00
Jonah Williams
5819008320 increase checkbox size and fix header area (#19966) 2018-07-30 10:45:24 -07:00
Jonah Williams
7e2434c8ff move semantics inside of opacity animation (#19960) 2018-07-30 10:44:15 -07:00
Jonah Williams
b2eed9a6da add export of TextCapitalization to text_field.dart (#19955) 2018-07-30 10:42:46 -07:00
Stanislav Baranov
51d3daadfb Change 'flutter ide-config' to optionally create root Intellij module (#19920) 2018-07-30 10:15:26 -07:00
Michael Goderbauer
4509ad5978 Do not implicitly scroll a PageView when showOnScreen is called (#19735)
Fixes #19523
2018-07-30 10:05:42 -07:00
Jonah Williams
82415e6400 add semantic label to image icon and exclude semantics from image widget (#19970) 2018-07-30 09:10:25 -07:00
Mehmet Fidanboylu
29410abbe7 Update the documentation on BinaryCodec (#19887)
Two clients have run into this in the past so adding a bit of documentation to make it clear. See https://github.com/flutter/flutter/issues/19849 for one example.
2018-07-27 22:10:39 -07:00
amirh
d62aa96ab5 Fix onPlatformViewCreated comment wording (#19933) 2018-07-27 21:02:55 -07:00
Greg Spencer
e262817ac2 Fix the gradle templates so that they default to values rather than throw build exceptions. (#19916)
When creating a new project, the build fails with an error similar to:

"versionCode not found. Define flutter.versionCode in the local.properties file."

This puts developers in the untenable situation of having to edit a file with local paths, but being unable to check it in.

This changes the templates to default to using versionCode 1 and version "1.0" if they are not defined in the local.properties file.

Fixes #18983.
2018-07-27 18:24:13 -07:00
David Shuckerow
0b1ef6bb1c Reduce the haptic feedback on the draggable widget. (#19585) 2018-07-27 14:53:51 -07:00
Jonah Williams
1b81b6127b swap default of card widget (#19898) 2018-07-27 14:00:30 -07:00