Commit graph

11214 commits

Author SHA1 Message Date
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
Zachary Anderson e2340c641d
[flutter_tool] Use curly braces around single statment control structures (#40446) 2019-09-13 14:51:35 -07:00
Emmanuel Garcia f29524a150
Rename useProguard method, so Gradle doesn't get confused (#40440) 2019-09-13 13:02:16 -07:00
Jonah Williams 6ba8fa9987
Remove direct flutter tool usage of protobuf for encoding file caches (#40410) 2019-09-13 12:49:03 -07:00
Jenn Magder b80b9bea38
Set DEFINES_MODULE for FlutterPluginRegistrant to generate modulemap (#40302) 2019-09-13 11:03:46 -07:00
Jonah Williams 69a296463e
Allow skipping webOnlyInitializePlatform in Flutter for Web (#40301) 2019-09-13 10:20:30 -07:00
Michael Goderbauer 9d70c85f5a
a11y improvements for textfield (#40390) 2019-09-13 09:23:27 -07:00
Shi-Hao Hong 2bd7f9ff7d
Update ToggleButtons constraints default and add new constraints parameter (#39857)
* Add constraints property, updated default constraints for ToggleButtons to 48x48

* Add kMinInteractiveDimension constant to ToggleButtons
2019-09-13 08:19:06 -07:00
stuartmorgan a7cfdbd3f3
Convert build mode to lowercase in tool_backend (#40393)
On macOS and iOS, the build mode is converted to lowercase in the
Flutter-side script, allowing projects to pass configuration names
directly. This adds the same behavior to the tool_backend.dart script
currently used by Windows and Linux, so that Windows builds can do the
same (since the default configuration names used by VS, as in Xcode,
start with a capital letter).
2019-09-12 19:13:42 -07:00
Jenn Magder ba13aa943c
Make FlutterPluginRegistrant a static framework so add-to-app can use plugins with static frameworks (#40401) 2019-09-12 18:51:49 -07:00
Francisco Magdaleno 09bb07f8dd
Adds list required components when VS is not installed (#40397) 2019-09-12 18:44:36 -07:00
Jonah Williams 18ffb0fbc3
place conditions on same line (#40391) 2019-09-12 18:30:24 -07:00
stuartmorgan 72888c7f75
Harden macOS build use of Xcode project getInfo (#40375)
- Makes build_macos.dart handle the case where there is only one Xcode
  project in the macos/ directory, but it's not called Runner.xcodeproj
- Makes getInfo throw a tool exit when trying to get project info and it
  can't find a project, since that is a configuration error by the user
  rather than a tool bug.
2019-09-12 16:03:02 -07:00
Francisco Magdaleno 576a455a64
[windows] Refactor to optimize vswhere queries (#40197) 2019-09-12 15:48:25 -07:00
Jonah Williams 91af071570
ensure dart2js does not compile unsupported packages (#40368) 2019-09-12 15:25:21 -07:00
Jonah Williams 1667d0caa4
rename port to web-port and hostname to web-hostname (#40370) 2019-09-12 15:25:03 -07:00
Jonah Williams 1fec30efb6
Place existing dill into hot reload temp directory to boost initialization time (#40366) 2019-09-12 12:45:53 -07:00
Ryan Macnak a6138bb005
Remove dead accessors of _getUnusedChangesInLastReload. (#39837)
This was part of a disused tool to explain what did and did not run after reload.
2019-09-12 12:34:58 -07:00
Jonah Williams 925a52fa6b
add host and port to run configuration for web devices (#40191) 2019-09-12 08:58:49 -07:00
Francisco Magdaleno f5733f7a62 Fix crash on vswhere search from flutter doctor (#40263)
Fixes a crash introduced on #40011 due to an incorrect type in the vswhere search

Fixes #40238
2019-09-11 21:03:42 -07:00
Jonah Williams 270878fc50
fix copy command and remove resolve sync for macOS assemble (#40294) 2019-09-11 20:29:27 -07:00
Zachary Anderson 73c10e8ced
[flutter_tool] process.dart cleanup (#39899) 2019-09-11 18:20:42 -07:00
Emmanuel Garcia 3712ea63d8
Flip the default for proguard (#40282) 2019-09-11 17:51:51 -07:00
Michael Goderbauer 6dc9bf0a02
Fix curve for popping hero (#39844) 2019-09-11 14:55:59 -07:00
Jonah Williams 6d37867c4a
Place hot reload artifacts in a temp directory (#40171) 2019-09-11 12:57:43 -07:00
Jonah Williams 963c8a8921
Remove io and isolate from libraries for web sdk (#40259) 2019-09-11 12:40:33 -07:00
Jonah Williams 8eee93fa64
Ensure we send hot restart events for flutter web (#40175) 2019-09-11 09:38:42 -07:00
Christopher Fujino c5e2bf5cfe
catch errors during gradle update (#37526) 2019-09-11 09:21:42 -07:00
Zachary Anderson 2c94f2b4d9
[flutter_tool] Kill a timing out process before trying to drain its stdout/err streams (#40159) 2019-09-11 08:30:29 -07:00
stuartmorgan e6ae95c4ce
Add an ephemeral directory to Windows projects (#40194)
Moves files generated in windows/flutter/ as part of the build to an ephemeral/ subdirectory, matching the approach used on macOS (and in the future, Windows).

Adds that directory to the generated properties file to minimize hard-coding of paths in the project.
2019-09-11 07:46:57 -07:00
stuartmorgan ef97a69dab
Make Swift plugin template swift-format compliant (#40195)
swift-format will alphabetize import statements, so Flutter* should be
before Foundation. Also, separating the "Generated file" comment
prevents the formatter from thinking that the comment is associated with
the following import, rather than the file, if it does re-order.
2019-09-11 07:43:50 -07:00
Jonah Williams 32c946f31b
make sure we launch with dwds (#40210) 2019-09-10 20:49:27 -07:00
LongCatIsLooong da151c95ba
CupertinoAlertDialog dark mode & CupertinoActionSheet fidelity (#40007) 2019-09-10 20:40:06 -07:00
Jonah Williams 609a78fdca
Revert "build bundle with assemble (#37508)" (#40204) 2019-09-10 20:03:52 -07:00
Jonah Williams f614144f0a
Add "web" server device to allow running flutter for web on arbitrary browsers (#39951)
* add web server device

* remove extra async

* fixes to server device

* testing updates

* fix test cases

* address comments
2019-09-10 19:29:31 -07:00
Jonah Williams a7aff56741
build bundle with assemble (#37508) 2019-09-10 19:28:38 -07:00
Jonah Williams 8504f3ae13
Update the supported library set for Flutter for web (#39983) 2019-09-10 17:27:30 -07:00
Emmanuel Garcia f098de1fde
Enable Proguard by default on release mode (#39986) 2019-09-10 17:22:55 -07:00
Francisco Magdaleno 362cde43ff
[windows] Searches for pre-release and 'all' Visual Studio installations (#40011) 2019-09-10 17:01:53 -07:00
Jenn Magder 556e3d9e74
Keep Flutter.framework binaries writable so they can be code signed (#40174) 2019-09-10 15:17:56 -07:00
Jenn Magder 12229264e2
Show CocoaPods version in hint text (#40117) 2019-09-10 13:26:32 -07:00
Michael Goderbauer 3f98fb7949
Ensure frame is scheduled when root widget is attached (#40105) 2019-09-10 13:26:09 -07:00
Sam Rawlins 2bc8f999f7 Remove visibleForTesting annotation; this constructor is used outside of testing (#39997) 2019-09-10 13:12:53 -07:00
Greg Spencer a7c06e113b
Fixed passing autofocus to MaterialButton, and when rebuilding Focus widget. (#39903)
Fixed passing autofocus to MaterialButton, and when rebuilding Focus widget, and added a test for Focus and MaterialButton to test that it works properly.
2019-09-10 10:29:58 -07:00
Jonah Williams f877c97b3b
Use persisted build information to automatically clean old outputs in assemble (#39654) 2019-09-10 09:57:47 -07:00
Mouad Debbar 03e8100346
Disable the performance overlay for web (#39999) 2019-09-10 08:56:28 -07:00
Peter Lee 423a1914f6 fix typo (#40048) 2019-09-10 08:54:18 -07:00
Andrew Brogdon 691977755c
Adds DartPad option to the DartDoc snippet generator. (#39924) 2019-09-10 08:36:14 -07:00
Jonah Williams 79ec38f7f3
ensure we use pub from flutter sdk (#40131) 2019-09-10 07:41:59 -07:00
Shi-Hao Hong 2449928d7c
Add null check to _IndicatorPainter._tabOffsetsEqual() to prevent crash (#40009)
* Add tabOffsetEqual null check with TODO
2019-09-09 21:12:27 -07:00
Sarbagya Dhaubanjar 45d57e780f Added properties in DropdownButtonFormField to match DropdownButton (#36998)
* Added properties in DropdownFormField to match DropdownButton

* Minor style guide related changes
2019-09-09 21:11:23 -07:00
Slade Capasso 4c254e5e8a Updates to debugFillProperties to test all properties in slider.dart and slider_test.dart (#39632) 2019-09-09 18:31:40 -07:00
LongCatIsLooong 663d0b13bc
Fix double.infinity serialization (#40099) 2019-09-09 18:30:12 -07:00
Jonah Williams 477ae6b8ce
cleanup use of build runner internals (#40045) 2019-09-09 18:16:03 -07:00
Jonah Williams eb7eb3ce3c
use build runners script gen (#40049) 2019-09-09 18:15:17 -07:00
Jonah Williams 0f365d3add
remove dart dir chrome profile (#39934) 2019-09-09 18:14:13 -07:00
Jonah Williams f19e4ab4f7
roll dwds (#40001) 2019-09-07 15:35:14 -07:00
Christopher Fujino f945079c65
remove fallback code for ios/usb artifacts (#39585) 2019-09-06 14:23:20 -07:00
Jonah Williams b2da79ce98
roll build runner and remove delay (#39988) 2019-09-06 14:19:12 -07:00
Harry Terkelsen 83da35fbbc
If there are no web plugins, don't generate a plugin registrant (#39910) 2019-09-06 12:54:31 -07:00
Jonah Williams b4c3671718
Register reload sources call and make 'r' restart for web (#39950) 2019-09-06 10:41:15 -07:00
lisa-liao 8b90d9d045 Allow independent theming of Persistent and Modal bottom sheets Background Color (#39333) 2019-09-06 13:06:01 -04:00
LongCatIsLooong 8661dc4022
Make CupertinoDynamicColor.resolve return null when given a null color (#39927) 2019-09-06 09:58:13 -07:00
chunhtai 57d714ebb8
fix widget built twice during warm up frame (#39079) 2019-09-06 09:46:18 -07:00
Jonah Williams 296e97f322
Revert "Correct libraries path and remove dart:io and dart:isolate for web dart platform (#39364)" (#39985)
This reverts commit 3f4d27c4bc.
2019-09-06 09:24:14 -07:00
Walid Elalaouy 8601bb7b38 Add showAboutDialog sample (#39299) 2019-09-06 09:06:53 -07:00
Jonah Williams 3f4d27c4bc
Correct libraries path and remove dart:io and dart:isolate for web dart platform (#39364) 2019-09-06 08:21:41 -07:00
Konstantin Scheglov 3118ae19ff
Fix new prefer_const_constructors after analyzer fix. (#39917) 2019-09-05 19:59:24 -07:00