Commit graph

11181 commits

Author SHA1 Message Date
Tong Wu c238045a96
Run flutter update-packages --force-upgrade. (#40766) 2019-09-20 07:58:53 -07:00
stuartmorgan 0412977e48
Support create for macOS (app and plugin) (#40851)
Adds macOS support for `flutter create`:
- Currently it is behind a hidden flag.
- Adds a TargetPlatform workaround to lib/main.dart in the standard app template when enabled.
- Supports `app` and `plugin`; `module` support doesn't yet exist for macOS in general.

This will eliminate the need to use FDE's examples as templates on macOS. The templates are based on the current state of FDE's examples, with templating support added (and with adoption of the new application delegate in the app, which hadn't been done yet in FDE, eliminating some boilerplate from the template).

Fixes #30703
2019-09-19 17:06:18 -07:00
stuartmorgan 86c342eceb
Move iOS and Android gitignore rules into folders (#40864)
Rather than have a monolithic .gitignore covering all platforms in the
app template, have each platform folder contain its own rules.

Fixes #40793
2019-09-19 17:04:53 -07:00
gaaclarke 71d75e3e0a
Channel buffers (#40165)
Started reading stored channel messages from ui.channelBuffers when handlers get set.
2019-09-19 16:58:54 -07:00
Harry Terkelsen 6911a1513c
Allow sending platform messages from plugins to the framework and implement EventChannel (#40638)
* Allow sending messages from the platform to the framework

* Add ability to send messages from the plugin to the platform.

Also adds [PluginEventChannel] which is the plugin counterpart to
EventChannel.

Fixes https://github.com/flutter/flutter/issues/39981

* fix analyzer errors

* Enhance doc comments

* Remove dead code in test
2019-09-19 10:48:57 -07:00
Jason Simmons c94a994d62
Handle CR+LF end of line sequences in the license parser (#40718) 2019-09-19 09:44:31 -07:00
chunhtai 0086243be4
Fixed Selectable text align is broken (#40709)
* Fixed Selectable text align is broken
2019-09-19 09:37:00 -07:00
Jonah Williams f8ba6756c3
Revert "Reland: implement build bundle with assemble (#40470)" (#40862) 2019-09-19 09:04:07 -07:00
Jonah Williams ea7876ae82
Reland: implement build bundle with assemble (#40470) 2019-09-19 07:46:50 -07:00
Jonah Williams 2a36ad31fa
Ensure Flutter for Web debug builds are only accessible through Flutter run (#40783) 2019-09-18 23:10:24 -07:00
stuartmorgan c32e543207
Invalidate macOS pods on plugin changes (#40730)
When the plugin list changes, iOS pods are invalidated, but that was
never wired up for macOS.

Should fix #39327
2019-09-18 21:42:57 -07:00
Alexander Aprelev b12bdd0ea1
Use separate isolate for image loading. (#34188)
* Use separate isolate for image loading. Use TransferableTypedData to const-cost receive bytes from that isolate.
2019-09-18 20:38:54 -07:00
adazh c4016aadb3
[Flutter Driver] Simplified the serialization/deserialization logic of the Descendant/… (#40715)
* Simplified the serialization/deserialization logic of the Descendant/Ancestor matchers
2019-09-18 16:58:33 -07:00
Jenn Magder d95adf999c
Move build info checks from generating files to the xcode build (#40792) 2019-09-18 16:57:31 -07:00
Amir Hardon 4e108b6f90
Exclude non Android plugins from Gradle build (#40640)
Before this change, having an Android app depend on a plugin that has no android implementation resulted in a Gradle build failure.

This scenario is likely to become more common if we're enabling federated plugins, as the package implementing just the desktop implementation of a plugin won't have an Android implementation.

This changes the Gradle plugin to not try to build any plugins that doesn't have an android/build.gradle file.
2019-09-18 16:42:20 -07:00
Robin Jespersen d4a016443b Adding onEnd callback to implicit animated widgets (#38979) 2019-09-18 14:56:18 -07:00
Michael Goderbauer 4373a31971
Reapply "Revert "Propagate textfield character limits to semantics (#40468)" (#40767) 2019-09-18 14:55:37 -07:00
chunhtai 6c457e124b
Material textselection context menu cannot disable select all (#40713) 2019-09-18 12:19:37 -07:00
Christopher Fujino 0b24a5a2ff
Implement mdns for flutter run (#40447) 2019-09-18 11:01:08 -07:00
Justin McCandless 431b82fda8
TextField docs for getting value (#40695)
Added docs examples of getting the string from a TextField
2019-09-18 10:43:23 -07:00
Greg Spencer 110db03f24
Fix a problem with disposing of focus nodes in tab scaffold (#40100)
Previously, focus nodes created in the tab scaffold were not being disposed of properly, causing possible memory leaks. Also, the builder wasn't being passed the right context so that the FocusScope.of operator inside of a builder would find the focus scope for the given tab (it was being passed the context of the overall tab scaffold).
2019-09-17 17:10:18 -07:00
Jonah Williams 5de5bb0172
fix platform environment (#40692) 2019-09-17 17:07:55 -07:00
Jenn Magder 9a68b0df3e
Warn when build number and version can't be parsed on iOS (#40611) 2019-09-17 17:07:41 -07:00
Michael Goderbauer b4324aed59
Revert "Propagate textfield character limits to semantics (#40468)" (#40714)
This reverts commit 6ad88bd5c0.
2019-09-17 16:37:11 -07:00
Michael Goderbauer 6ad88bd5c0
Propagate textfield character limits to semantics (#40468) 2019-09-17 14:39:50 -07:00
Kate Lovett 31029f9338
Doc Improvements for SliverFillRemaining (#39088) 2019-09-17 14:21:28 -07:00
Greg Spencer 63e096b4ac
Update keyboard maps (#40697)
This updates the keyboard maps to use updated HID codes for game controller buttons (from Chrome), and to encode that GLFW "super" keys are what we call "meta" keys (i.e. Windows key or Command key).
2019-09-17 13:24:54 -07:00
Michael Goderbauer 8e14fc7f72
New overview for animations library (#40607) 2019-09-17 13:03:15 -07:00
Anthony c17086a06d
Add the option to configure a chip check mark color (#40608)
Add the option to configure a chip check mark color
2019-09-17 14:17:34 -04:00
xster fab3eb21c2
Let Material BackButton have a custom onPressed handler (#39600) 2019-09-17 11:09:18 -07:00
Brian Egan a50eda8f5a Diagrams and samples for Rank 20-30 popular api docs (#40089) 2019-09-17 10:22:28 -07:00
Hans Muller 6d18c20a95
Update PopupMenu layout (#40179) 2019-09-17 08:48:27 -07:00
Emmanuel Garcia 8a1bf5b827
Reland #39157 (#39798) 2019-09-17 08:19:33 -07:00
Alexandre Ardhuin df4bf453ab
more UI-as-code (#35516) 2019-09-17 16:23:44 +02:00
stuartmorgan d03aecab58
Add an ephemeral directory for Linux (#40587)
Moves the generated config into that directory. Matches the structure of
the other desktop projects.

Also fixes #40265
2019-09-16 16:04:55 -07:00
Emmanuel Garcia 0df1594ba2
Enable the resource shrinker (#40610) 2019-09-16 15:27:05 -07:00
LongCatIsLooong 390ef60963
CupertinoNavigationBar Dark Mode(#40189) 2019-09-16 14:16:30 -07:00
Gary Qian 67e35d612e
Specify ifTrue and ifFalse for strut FlagProperty (#40609) 2019-09-16 14:08:18 -07:00
Kate Lovett e62c68c243
Fix for broken LocalFileComparator output (#40399)
* Fixing LocalFileComparator output

* Fixing path separators for windows failures

* Windows path issues

* Testing

* ++

* ++

* Fixing base directory - windows

* Clean up
2019-09-16 13:14:46 -07:00
Jonah Williams 79107e0fe2
Dont kill other processes when starting desktop application (#40472) 2019-09-16 13:12:50 -07:00
Simon Lightfoot bf216110ff Adds relayout option to CustomMultiChildLayout. (#39252) 2019-09-16 09:22:59 -07:00
Hans Muller 0f00f424fa
ModalRoutes ignore input when a (cupertino) pop transition is underway (#40466) 2019-09-16 08:02:04 -07:00
Zachary Anderson 8a33d2446d
[flutter_tool] Remove the synchronous -showBuildSettings (#40435) 2019-09-16 07:51:50 -07:00
MH Johnson 0d3bb515f3
[Docs] Create 'center' snippets template (#40367)
* Create 'center' template
2019-09-15 20:38:44 -04:00
Shi-Hao Hong cf7e7e4529
Implement DropdownButton.selectedItemBuilder (#40461)
* Implement DropdownButton.selectedItemBuilder
2019-09-14 07:56:05 -07:00
LongCatIsLooong 64300123fa
Restore offstage and ticker mode after hero pop and the from hero is null (#40306) 2019-09-13 19:46:58 -07:00
Emmanuel Garcia 4d404da6df
Update Kotlin and Gradle version (#40181) 2019-09-13 19:37:07 -07:00
Jonah Williams 6f5df21e5b
pass through --web-port in release mode too (#40465) 2019-09-13 19:15:52 -07:00
Emmanuel Garcia 2c857b9370
Enable R8 (#40453) 2019-09-13 19:06:40 -07:00
LongCatIsLooong 19b47c2dd4
Dark Mode R: Refresh Control (#40454) 2019-09-13 17:18:20 -07:00