11192 Commits

Author SHA1 Message Date
Chris Bracken
7213a7805a
Mark flutter_attach_test flaky (#18801)
Introduced in d248725e1509603551fc4e70e532c190743cd4ab, but has been red
since landing. Marking flaky rather than reverting since it's the only
failure.
2018-06-25 11:04:51 -07:00
Florian Loitsch
783a278956
Replace existing app if it already exists. (#18796)
The `flutter attach` test was failing because the Android device had
the app already installed.
2018-06-25 16:12:06 +02:00
Florian Loitsch
d248725e15
Flutter attach (#18677)
Add `flutter attach` command.

This command allows Flutter to connect to applications that haven't been launched using `flutter run`.
2018-06-25 15:33:42 +02:00
sandrasandeep
5fbec7b812 Fix segmented control golden tests (#18695) 2018-06-25 14:06:41 +02:00
Sarah Zakarias
def7634ba0
Support running apk with more than one activity (#18716) 2018-06-25 13:38:08 +02:00
Mikkel Nygaard Ravn
87a067704a
Fix typos (#18789) 2018-06-25 11:46:25 +02:00
Mikkel Nygaard Ravn
095f48d051
Fix typo (#18785) 2018-06-25 10:11:24 +02:00
Andrew Davies
2e559584e2
[frdb][test] Fix analyzer issues (#18743)
Unbreaks flutter-build
2018-06-22 16:32:32 -07:00
David Shuckerow
1a372afb37
Revert changes to core SDK members that haven't been propagated to the g3 SDK yet (#18654)
* Revert changes to core SDK members that haven't been propagated to the g3 Dart SDK yet.

* Respond to comments.

* Remove retype

* Temporarily un-remove VMService.retype to unblock g3 roll

* Checkout back to master, we need fewer changes to reach compat with dev.61 than dev.60
2018-06-22 14:16:34 -07:00
jcollins-g
7de0f9f1e2
Upgrade dartdoc to 0.20.1. (#18725) 2018-06-22 14:15:48 -07:00
Andrew Davies
08d3deec80
[frdb] Fix JSON casting in RPC calls. (#18655)
This prevents the error:

`type 'List<dynamic>' is not a subtype of type 'List<Map<String, dynamic>>' `

The test added fails when dart_vm.dart is reverted to `master`, and succeeds in
its current state.  This issue was run into while connecting to the
Dart VM.
2018-06-22 14:00:49 -07:00
liyuqian
7fdb404a13
Add the missing canvas.save and canvas.restore (#18722)
This fixes https://github.com/flutter/flutter/issues/18708
2018-06-22 13:58:46 -07:00
Jonah Williams
d6465c477a
Fix system chrome colors on gallery and definition in iOS (#18735) 2018-06-22 13:51:08 -07:00
Jonah Williams
daa1619905
Fix input decoration height and margin calculation. (#18696) 2018-06-22 12:28:15 -07:00
Mikkel Nygaard Ravn
a7ba7b4b62
Fix gitignore (#18726) 2018-06-22 20:14:28 +02:00
Michael Goderbauer
f11b790b8c
Track size of App.framework and Flutter.framework for Hello World (#18701) 2018-06-22 09:27:31 -07:00
Mikkel Nygaard Ravn
d89a6b544e
Add module template for Android (#18697) 2018-06-22 18:19:37 +02:00
Jonah Williams
f5f055113a
Initial implementation of AnnotatedRegion for system chrome (#17672) 2018-06-21 22:22:59 -07:00
Alexander Aprelev
9a51588d54
Suppress stdout compile diagnostic when compile expressions. (#18703)
* Suppress stdout compile diagnostic when compile expressions.

This fixes https://github.com/flutter/flutter/issues/18574.

* Use equal sign for default values
2018-06-21 20:55:04 -07:00
Adam Barth
b327ac3445
Fix typo in Text docs (#18635) 2018-06-21 19:29:30 -07:00
liyuqian
e581435d28
Reland: Skip painting hidden children of a sliver list (#18539)
* Revert "manual rollback of of 18530 (#18531)"

This reverts commit 3f79f8cba5425e964f05fc79331dc5ff4b82c22f.

* Fix the offset calculation

* Add a unit test
2018-06-21 16:46:08 -07:00
Sam Rawlins
9f8a70be4c Bump mockito to 3.0.0-beta (#18462)
* Bump mockito to 3.0.0-beta

* Few fixes

* fix test

* Bump image

* Fix

* New packages update

* With matcher pinned

* No more typed
2018-06-21 16:23:47 -07:00
Hans Muller
bec912165a
Added ListView.separated() constructor (#18619) 2018-06-21 16:04:16 -07:00
Yegor
a57aff053e
fix build scope messages and docs (#18637) 2018-06-21 16:00:49 -07:00
amirh
c39f2f26f7
Move the notch computation from the FAB to the BAB. (#18372)
Move the notch computation from the FAB to the BAB.

The notch in the BAB (bottom action bar) for the FAB (floating action button) was previously kept as part of the FAB's implementation. This was done to keep the shape of the FAB and the shape of the notch coupled.
That approach resulted in a somewhat complex and 'non Fluttery' mechanism for propagating the notch computation from the FAB to the BAB.

This CL uncouples the FAB and the notch computation.
With the new API the BAB computes its overall shape including the notch using a NotchedShape delegate.

This includes multiple breaking changes:
  * Scaffold.setFloatingActionButtonNotchFor is deleted.
  * The ComputeNotch type is deleted.
  * The hasNotch property of BottomAppBar is deleted.
  * The notchMargin property of FloatingActionButton is deleted.

Quick migration guide from the previous API:

| Previous API | New API |
| ------------------|-------------|
| BottomAppBar(hasNotch: false) | BottomAppBar() |
| Using a FloatingActionButton with: BottomAppBar() / BottomAppBar(hasNotch: true) | BottomAppBar(shape: CircularNotchedRectangle()) |
| Scaffold.setFloatingActionButtonNotchFor(..) | No longer supported |
2018-06-21 15:51:21 -07:00
liyuqian
65069ed4de
Remove saveLayer after clip from dart (#18616)
This is a follow up on https://github.com/flutter/engine/pull/5420
and https://github.com/flutter/flutter/issues/18057

As you can see from the diff, we also mistakenly saveLayer before
the clip at some places previously.
2018-06-21 13:01:55 -07:00
matthew-carroll
d916806aee
Use RenderAnimatedOpacity within AnimatedOpacity widget (#15466) (#18121)
* Use RenderAnimatedOpacity within AnimatedOpacity widget (#15466)

* Fixed minor bug in RenderAnimatedOpacity

* Updated protected API for ImplicitlyAnimatedWidget
2018-06-21 19:36:14 +00:00
Alexander Aprelev
2828a459f6
Serialize expression compilation requests (#18618)
* Serialize compilation requests.
2018-06-21 11:13:21 -07:00
Zachary Anderson
39f0076c30
[frdp] Use 'true' instead of 'date' for dummy ssh tunnel command (#18680) 2018-06-21 10:20:43 -07:00
Dan Field
a18f5e84a1
Expose Text foreground from engine (#18347)
* update tests for TextStyle changes in engine

* roll engine, support Foreground on TextStyle

* roll to TextStyle.foreground

* add tests, update docs, fixes from tests

* add golden tests

* stroke + gradient

* update goldens hash

* Use centered widget

* fix typo

* Disable golden tests until Linux generated files are available

* update goldens
2018-06-20 20:23:51 -04:00
Natalie Sampsell
c35e484c95
Adding segmented control (#18373) 2018-06-20 15:44:03 -07:00
Yegor
9da80217fc
make crash server URL customizable from environment (#18649) 2018-06-20 15:43:43 -07:00
Jonah Williams
97e58ecb2c
Make expansion panel have a minHeight instead (#18623) 2018-06-20 15:15:03 -07:00
Alexander Aprelev
fb8cbf216b
Roll engine to 549c855e89341b97436b3417542fc8f997492df7 (#18591)
* Roll to 549c855e89341b97436b3417542fc8f997492df7

* Clean up return void - see https://github.com/dart-lang/sdk/issues/33218
2018-06-20 12:36:10 -07:00
Jonah Williams
328e9f62f6
Increase text handle size to 48 by 48 (#18486) 2018-06-20 09:53:18 -07:00
Devon Carew
9a9e6cffab
revert some type args added in https://github.com/flutter/flutter/pull/18575 (#18621) 2018-06-20 07:13:16 -07:00
Mikkel Nygaard Ravn
475678fdd8
Make Gradle script support Flutter-as-lib (#18633) 2018-06-20 16:07:05 +02:00
Florian Loitsch
0a3179fbab
Make ensureVersionFile a Future<void> function. (#18631) 2018-06-20 15:34:17 +02:00
matthew-carroll
a4599b02e3
Add doc example to addLocalHistoryEntry in LocalHistoryRoute (#9392) (#18124)
* Add doc example to addLocalHistoryEntry in LocalHistoryRoute (#9392)
2018-06-20 00:58:40 +00:00
Ian Hickson
6599271bf5
Revert matcher package (#18614)
The new matcher package deprecates isInstanceOf which seems eggregious.
2018-06-19 17:22:56 -07:00
Andrew Davies
0f2e50bb87
[frdb] Added env test (#18485) 2018-06-19 17:19:26 -07:00
Florian Loitsch
bb23a110e0
Fix test (#18603)
Fix test.

This makes the buildbot green again.
2018-06-19 16:41:27 +02:00
Greg Spencer
08d1ec36de Roll engine to 0c119932c0d6cb30dafd75ec717d1eda76fd7651 (#18575) 2018-06-19 09:58:20 +02:00
matthew-carroll
9e7e6e7c9b
Add docs to Opacity recommending AnimatedOpacity for opacity animatio… (#18092)
* Add docs to Opacity recommending AnimatedOpacity for opacity animations (#15464)
2018-06-19 00:58:03 +00:00
Michael Goderbauer
9a8c4dfef6
Report compressed/uncompressed size of icudtl, snapshots, and libflutter (#18583)
Reported for the hello_world compile benchmark in devicelab for now.
2018-06-18 17:12:14 -07:00
Greg Spencer
efa2a474ea
Adding HSLColor and color 'within' matchers for HSVColor and HSLColor (#18294)
This adds an HSLColor class which uses a perceptual color space based upon human perception of colored light (as opposed to HSV, which is based on pigment colors).

You can see the difference in the color spaces here: https://en.wikipedia.org/wiki/HSL_and_HSV

I also added a "within" matcher for both HSLColor and HSVColor that will check if the (floating point) color components are within a certain error.

And tests.
2018-06-18 17:11:42 -07:00
Florian Loitsch
bd4cf62821
Roll sync async engine (#18454)
* Roll the engine.

This engine includes a VM that defaults to sync-async.

flutter/engine@c8eeee4 Roll the Dart VM.
2018-06-18 15:17:02 +02:00
Danny Tuppeny
592c5ba91a
Don't be case-sensitive when checking for extension (#18515)
Seems like VS Code may have started using lowercase extension folders recently (our identifier is `Dart-Code.flutter` but now the folder is named `dart-code.flutter`), so this makes the check not sensitive to casing.

Also reuse extension identifier for download link
2018-06-18 06:37:01 +01:00
Jonah Williams
3f79f8cba5
manual rollback of of 18530 (#18531) 2018-06-16 12:54:02 -07:00
Michael Goderbauer
ebb174b0bf
Add size benchmark for hello_world (#18522) 2018-06-16 00:08:33 -07:00