Commit Graph

8999 Commits

Author SHA1 Message Date
Jonah Williams
9b66fea2ea Follow up to https://github.com/flutter/flutter/pull/23436 (#23876) 2018-11-06 08:37:53 -08:00
Todd Volkert
07d1ba87e0 Update doctor instructions for libimobiledevice installation (#23946)
https://github.com/flutter/flutter/issues/22595
2018-11-05 15:10:13 -08:00
mattijsf
54becbf3bf Ignore unreachable iOS devices in IOSDevice.getAttachedDevices (#23776) 2018-11-05 15:09:39 -08:00
Stanislav Baranov
ba4cf054bd Propagate positions of secondary pointers in UP events on Android (#23797) 2018-11-05 12:43:00 -08:00
Hans Muller
7245c4a6f6 Warn about supported locales that lack localizations (#23850) 2018-11-05 12:39:31 -08:00
Florian Huonder
02355d4c19 Added the DialogTheme to the material exports so that it is accessible. (#23858) 2018-11-05 09:34:05 -08:00
Dan Field
212374f0b7 Fix tests for ANSI terminals (#23906) 2018-11-05 07:56:30 -08:00
Alexandre Ardhuin
344ebe02ff avoid returning null for Future (#23784) 2018-11-05 16:38:23 +01:00
Greg Spencer
202b045b50 Rewrite the analyze-sample-code script to also analyze snippets (#23893)
This rewrites the sample code analysis script to be a little less of a hack (but still not pretty), and to handle snippets as well.

It also changes the semantics of how sample code is handled: the namespace for the sample code is now limited to the file that it appears in, so some additional "Examples can assume:" blocks were added. The upside of this is that there will be far fewer name collisions.

I fixed the output too: no longer will you get 4000 lines of numbered output with the error at the top and have to grep for the actual problem. It gives the filename and line number of the original location of the code (in the comment in the tree), and prints out the source code on the line that caused the problem along with the error.

For snippets, it prints out the location of the start of the snippet and the source code line that causes the problem. It can't print out the original line, because snippets get formatted when they are written, so the line might not be in the same place.
2018-11-05 07:31:35 -08:00
Alexander Aprelev
34bc1e3c8c Fix hanging of flutter run when running on more than one simulator. (#23932)
This stops reading from pipe-to-file log after the build is completed. Attempting to read from pipe-to-file keeps open blocked because nobody is going to write into that pipe.
2018-11-05 07:29:37 -08:00
Danny Tuppeny
8e7c8048de Don't search in %LocalAppData% if it's not set (#23933)
It's not usual for this not to be set, but it affected at least one user (#23909) and there are a non-zero number of people online saying it's not set. It's better that we don't crash.

Fixes #23909.
2018-11-05 08:57:49 +00:00
sjindel-google
db9fe3f827 Fix text field clipping when erasing rapidly. (#23894)
`RenderEditable.paint` assumes that if the length of the text fits within the
visible region, then the text will be rendered at the start of the region and be
completely visible. This is not always true, since the text may still be
rendered at an offset if an animation is ongoing when the text begins to fit.

This fixes #22288 and #14121
2018-11-04 03:20:44 +01:00
jslavitz
a4a0ff9ab4 Makes FlexibleSpaceBarSettings public (#23803)
* Makes FlexibleSpaceSettingsPublic and adds a test
2018-11-02 17:38:38 -07:00
Yegor
f03b00706f code readability: fix awkward variable shadowing (#23886) 2018-11-02 17:07:00 -07:00
Hans Muller
dd30efa190 Revert "Restore "Flutter gallery: updated Shrine demo" (#23878)" (#23888)
This reverts commit 76a1abd4c7.
2018-11-02 15:32:02 -07:00
Hans Muller
76a1abd4c7 Restore "Flutter gallery: updated Shrine demo" (#23878) 2018-11-02 14:33:10 -07:00
Jonah Williams
d52f315c35 Add new benchmark to track cost of dependencies to a User (#23856) 2018-11-02 13:38:54 -07:00
Jason Simmons
36b9983212 Dartdoc comment for FontLoader.loadFont (#23882) 2018-11-02 13:22:09 -07:00
jslavitz
3aa104fe60 Allows progress indicator height to be controlled by parent (#23540)
* Adds functionality for progress indicator height to be controlled by the parent.
2018-11-02 09:50:14 -07:00
Jason Simmons
00565c2dda An API for dynamically loading fonts (#23595)
See https://github.com/flutter/flutter/issues/17910
2018-11-02 09:44:26 -07:00
liyuqian
744b872f65 Add unit tests to mutate layer fields (#23599)
So we're sure that:
1. We won't break the API by not allowing to mutate fields
2. We won't forget to markNeedsAddToScene after mutation
2018-11-02 08:02:22 -07:00
Alexandre Ardhuin
6c32c15f3c add some const classes (#21954) 2018-11-02 14:25:06 +01:00
Jonah Williams
d80999d6b8 Support attach on fuchsia devices (#23436) 2018-11-01 20:04:52 -07:00
Alexander Aprelev
47f62109d2 Specify UDID for idevicelistener. (#23854)
This is needed to run flutter app on multiple iOS devices at a time.
2018-11-01 20:04:42 -07:00
Jonah Williams
0b35937b13 Revert "Flutter gallery: updated Shrine demo (#23539)" (#23848)
This reverts commit 949cfcf172.
2018-11-01 19:30:11 -07:00
Hans Muller
949cfcf172 Flutter gallery: updated Shrine demo (#23539) 2018-11-01 12:48:24 -07:00
Amir Hardon
fe503dc4ba Add creation parameters to UiKitView. (#23800) 2018-11-01 11:14:43 -07:00
Yegor
072cd94839 call hapticFunction directly (#23830) 2018-11-01 10:35:09 -07:00
Jonah Williams
aac5b04858 CupertinoPicker semantics (#23551) 2018-11-01 10:20:19 -07:00
Stefano Rodriguez
a9b8796a60 Use maybePop in place of pop in ModalBarrier dismiss interaction (#22023)
* Use maybePop in place of pop in ModalBarrier
2018-11-01 09:45:13 -07:00
jslavitz
0d68fccc1e Add DropDownButtonFormField convenience class (#23611)
* Adds DropDownFormField Convenience Class
2018-10-31 17:14:25 -07:00
Dan Field
fd6b2e198c Re-reland Xcode backend refactor (#23762)
* Use Xcode build configurations to drive Flutter build mode

* Proper check wrt local_engine, print error if profile mode misisng

* Remove unused code, update tests, fix template problem, update warning

* fix up warning

* add explanatory dev comment

* fix whitespace

* missing words, change lambda arrow to function body

* error indentation

* Test early exits for xcode_backend.sh

* only on macOS, use right test

* Update error messages

* case insensitive compare for build config

* Update gallery podfile

* update projects to add profile configuration

* make compatible with flavors

* add missing plist files

* add FLUTTER_FRAMEWORK_DIR back, set swift version for profile, tell Podfile about profile
2018-10-31 16:37:53 -07:00
Michael Goderbauer
fab109cef5 endTemplate -> endtemplate (#23785) 2018-10-31 16:26:01 -07:00
Michael Goderbauer
5a57d80cb7 Simple doc fix (#23753) 2018-10-31 16:24:59 -07:00
jslavitz
a63ed4e391 Scaffold drawer fix (#23689)
* Adds drawer state query functions
2018-10-31 16:23:44 -07:00
Amir Hardon
8de86d412e Re-land "Initial framework support for iOS platform views." (#23781)
Re-landing #23412 with a fix to the PlatformLayer's addToScene signature.

#23412 was broken by the change to Layer done in #23434.

It seemed green as the presubmits were done before #23434 was landed, and when #23412 landed it broke the build.

Reverts #23779
2018-10-31 15:07:09 -07:00
Amir Hardon
b20e7a2671 Revert "Initial framework support for iOS platform views. (#23412)" (#23779)
This reverts commit 67ffe1c2cb.
2018-10-31 07:06:05 -07:00
Amir Hardon
67ffe1c2cb Initial framework support for iOS platform views. (#23412)
This PR adds the full framework stack (layer->render object->widget, and
service) for embedding iOS views with minimal functionality.

I allowed myself to throw the entire framework stack in one PR since we're mostly
mirroring the structure we already established for embedded Android views, so this PR
is a little bigger than usual. I'm happy to break it down to the
different pieces of the stack if reviewers prefer.

Specifically this PR adds:
* A UiKitView widget for embedding a UIView in the widget tree.
* A RenderUiKitView which is the render object for showing a
  UIView.
* A PlatformViewLayer which denotes the position of a UIView in the
  layer tree.
* The iOS platform_views system channel client code in services/platform_views.dart
* Splits the fake platform views controller to an Android and iOS
  controllers.

TBD in following PRs:
* Plumb the layout direction all the way to the platform view (currently
  there is still no engine support for it).
* Integrate with gesture arenas (engine support is still missing as
  well).
2018-10-31 06:01:28 -07:00
MH Johnson
50098f149d [Material] Theme for Dialogs (#23569)
* [Material] Add dialog theme.

* Address Hans' first round comments.

* Address Hans' Second round comments.

* Fix theme tests

* Address Will's comments, add golden test

* Update goldens

* Custom Border radius 16.0

* Address Hans' Comments

* Second round comments

* fix imports
2018-10-30 22:54:49 -04:00
Greg Spencer
1b9cba4b42 Make sure we refer to 'stable', and not 'release' branch. (#23745) 2018-10-30 16:57:54 -07:00
MH Johnson
b8c3e0dbae [Material] Create TabBarTheme.of constructor (#23702)
* Create TabBarTheme of(...) constructor

* First round comments

* fix imports
2018-10-30 19:13:16 -04:00
Greg Spencer
f9c6f30576 Allow users to create samples using flutter create. (#23584)
This adds flutter create --sample which allows users to execute a command which will create a working sample app from samples embedded in the API docs.

The command looks something like this:

flutter create --sample=chip.DeletableChipAttributes.onDeleted mysample
2018-10-30 16:01:14 -07:00
Greg Spencer
4559ae1a6b Stop wrapping adb, gradle and ios logger output, and update terminal wrapping column dynamically. (#23592)
Subcommand output (gradle, adb, etc) is no longer wrapped, and wrapping notices when the terminal column width changes dynamically now.

Fixes #23267.
Fixes #23266.
2018-10-30 16:00:50 -07:00
jslavitz
be7226f08e Adds sample code to TextFormField (#23680)
* Adds sample code to TextFormField
2018-10-30 13:54:19 -07:00
Devon Carew
72b1a2b895 update the docs for the module template (#23699)
* update the docs for the module template

* update text
2018-10-30 13:30:10 -07:00
Gary Qian
40fc45ace3 Remove '' as countryCode in localization tests (#23709) 2018-10-30 11:33:46 -07:00
jslavitz
503ae8cbfd Adds Text Direction functionality to the TextField (#23609)
* added textDirection to TextField
2018-10-30 11:21:48 -07:00
Hans Muller
419be22340 More debugCheckHasMaterialLocalizations() asserts (#23740) 2018-10-30 11:08:21 -07:00
Danny Tuppeny
a2c9dd8180 Add a hot reload test that modifies code and verifies it executes (#23725) 2018-10-30 16:59:49 +00:00
Hans Muller
06cc1d9ec0 Resolve MaterialApp.locale, WidgetsApp.locale per supportedLocales (#23707) 2018-10-30 09:53:21 -07:00