12072 Commits

Author SHA1 Message Date
Jonah Williams
b3ea191407 [flutter_tools] Update template for web application to correct typo (#48778) 2020-01-14 08:13:01 -08:00
xster
9eb9ea0ffa
Let the tool warn about all old API plugins (#48282) 2020-01-13 21:30:42 -08:00
Jonah Williams
79c286705c
[flutter_tools] Refactor Environment and FileStore to be context-free (#48759) 2020-01-13 19:25:35 -08:00
Michel Feinstein
9585acd478 Fixing AutomaticKeepAlive Docs (#48575) 2020-01-13 17:18:02 -08:00
Jonah Williams
9f145f6ced [flutter_tools][web] Add basic service worker generation support to web applications (#48344) 2020-01-13 17:13:02 -08:00
Dan Field
0a600e1ddc
Fix tool test order (#48735) 2020-01-13 17:11:32 -08:00
Prerak Mann
8b6b3b62c1 Passes scrollPhysics (#48342) 2020-01-13 17:08:01 -08:00
Zachary Anderson
ef62092b9b
Revert "[flutter_tools] File system utilities (#48738)" (#48755)
This reverts commit 034966062249c490e12ff252828e4ba4993bac2b.
2020-01-13 14:30:37 -08:00
Jacob MacDonald
03a59bff03
Serve packages uris in flutter_tools dev web server (#48743)
* support mapping /packages/<package>/<path> requests to package:<package>/<path> uris in the web device file server
2020-01-13 13:21:57 -08:00
Zachary Anderson
0349660622
[flutter_tools] File system utilities (#48738) 2020-01-13 13:17:45 -08:00
Tianguang
d7d642653a
Add asserts requiring BoxConstraints' parameters to be non-null (#48295) 2020-01-13 21:34:30 +01:00
Kate Lovett
8f92cb710e Fixing PageScrollPhysics to get along with NestedScrollView (#48457) 2020-01-13 11:58:03 -08:00
Greg Spencer
6495d3775d
Allow requestFocus on an unattached FocusNode to create a deferred focus request (#48589)
This changes the behavior of requestFocus when it is called on a FocusNode that does not yet have a parent, so that it defers requesting focus until it receives a parent. Before this change, calling requestFocus before it had a parent was a no-op.

This allows scenarios where a widget is newly added and wishes to immediately request the focus. Previously, it was very hard to make that work because requesting focus before the widget's focus node had a parent was ignored, so the developer had to wait until two frames later to request focus (one for the widget's node to be added to the focus tree, and one to request the focus).

Now, in order to have a widget be focused when initially added, you just need to call requestFocus on its node when you create it, and as soon as it is added, it will automatically request focus.

This is different from the autofocus attribute on the Focus widget, because it unconditionally requests focus when added (autofocus will only request focus if nothing else in the scope has focus).
2020-01-13 11:56:47 -08:00
Zachary Anderson
23a3d1014f
[flutter_tool] Make BotDetector context free (#48605) 2020-01-13 10:12:06 -08:00
Michael Goderbauer
6a5964d89c Make ParentDataWidget usable with different ancestor RenderObjectWidget types (#48541) 2020-01-13 10:08:01 -08:00
Ian Hickson
e2b169ebd3 Apply void_checks lint. (#48267) 2020-01-13 10:03:01 -08:00
Dan Field
5129c2d295
Fix typo (#48385) 2020-01-10 17:06:16 -08:00
Zachary Anderson
4d096c434f [flutter_tool] Make CommandHelp context free (#48584) 2020-01-10 16:53:01 -08:00
Chris Yang
7dba0da277
Fix platform view pointer event global route position detection (#48459) 2020-01-10 16:52:22 -08:00
Angjie Li
1d08642a90 Create helper functions to handle WebDriver actions. Some actions on base … (#48538) 2020-01-10 14:48:02 -08:00
Kate Lovett
6397c022bb Adding error handling for SocketExceptions to local comparator (#48517) 2020-01-10 14:43:01 -08:00
Emmanuel Garcia
fca5917519 Test hot reload targeting a Fuchsia device (#48472) 2020-01-10 14:38:01 -08:00
Zachary Anderson
8b139a8c41
[flutter_tool] Use the delegate's toString in the ErrorHandlingFileSystem (#48597) 2020-01-10 14:35:49 -08:00
Zachary Anderson
67a68e9fa6
[flutter_tools] Fix analytics opt out event (#48585) 2020-01-10 14:35:19 -08:00
Maya
c90b118247 Add padEnds option to SliverFillViewport (#48207) 2020-01-10 14:33:02 -08:00
Tim Sneath
5280dda15b Improve toolchain text (#48102) 2020-01-10 14:28:03 -08:00
LongCatIsLooong
02db6a8052 DiagnosticsTreeStyle.oneLine for CupertinoThemeData (#48084) 2020-01-10 14:23:02 -08:00
Emmanuel Garcia
ec2d58335a Make subcommands return success instead of null (#48100) 2020-01-10 11:28:01 -08:00
Gerrit
a8c5f4e8c4 Add missing indentation to assets-images example (#45833) 2020-01-10 11:23:01 -08:00
Ben Konyi
d907a26229
Fixed issue where PaginatedDataTable would not fill the width of its containing Card (#48531) 2020-01-10 09:44:22 -08:00
gaaclarke
31f399f973 Stopped increasing the cache size to accomodate large images. (#47387) 2020-01-10 09:43:03 -08:00
Jonah Williams
5d30c0970a
[flutter_tools][web] Add support for web app manifests and arbitrary resource files (from web/) (#48316) 2020-01-10 09:37:20 -08:00
Jonah Williams
749589d896
[flutter_tools] Remove context usage from status and clean up test cases (#48446) 2020-01-10 09:36:49 -08:00
Shi-Hao Hong
db08afd07f Allow for customizable ModalRoute barrierTween (#48345) 2020-01-09 19:28:01 -08:00
Hans Muller
169f157908
Step 1 of 2: Warn about Flutter's FloatingActionButton dependency on ThemeData accent properties (#48435) 2020-01-09 10:30:17 -08:00
Greg Spencer
1df6e2af5d
Simplify the Shortcuts widget diagnostic output (#48265)
This simplifies the diagnostic output for the Shortcuts widget so that if a debugLabel is supplied, then that is printed instead of the full list of shortcut keys in the map. Also, the output of the shortcut map is simplified to have the list of keys presented in more readable text.
2020-01-09 09:54:23 -08:00
Shi-Hao Hong
51e24a3561
Implement reverseTransitionDuration for TransitionRoute (#48274)
* Implement reverseTransitionDuration in TransitionRoute
2020-01-09 09:31:38 -08:00
creativecreatorormaybenot
c241f9f6b2 Document reasoning for why CustomMultiChildLayout size can't depend on children and how to do it (#48451) 2020-01-09 08:28:02 -08:00
Alexandre Ardhuin
82262d8896 format operator== according to flutter style guide (#48449) 2020-01-09 08:23:02 -08:00
Zachary Anderson
23ce192a8f Reland: Reword flutter run help screen. (#48423) 2020-01-09 08:18:03 -08:00
Kate Lovett
84aa29ce63 Gold Pre-submit flow for contributors without permissions (#47551) 2020-01-09 08:08:03 -08:00
Greg Spencer
fabf4e3d0d Reverse the sense of the terms snippet and sample. (#48254) 2020-01-08 15:28:02 -08:00
Tong Mu
dbed575c01 Add test of scrolling competition (#47492) 2020-01-08 15:23:02 -08:00
Zachary Anderson
07161e8267
[flutter_tool] Don't use context in ProcessUtils (#48444) 2020-01-08 15:20:32 -08:00
Sunbreak
4e6d649f14 Add optional endian argument for WriteBuffer/ReadBuffer (#46661) 2020-01-08 15:18:03 -08:00
stuartmorgan
58d6c425e4
Check for desktop project files before building (#48350)
Moves the checks that projects have been configured for desktop to a lower level, where they will cover more codepaths (e.g., 'run'), and improves them to check for native build projects, rather than just directories, to catch cases where the directory exists (e.g., due to accidental creation of generated files).

Also adds links to the error messages pointing to instructions on adding desktop support to a project.

Fixes #47145
2020-01-08 12:39:49 -08:00
Lau Ching Jun
67c843f7b6 Rename conditional imported files to match convention (#48356) 2020-01-08 12:38:03 -08:00
Jonah Williams
f7b8d62cbc
[flutter_tool] Refactor Logger and Terminal to (mostly) no longer depend directly on context (#47269) 2020-01-08 12:35:12 -08:00
Marius Meißner
0384c8c482 Flexible padding (header height) for expanded panels (#47951)
* Added property for expanded padding of expansion panel for solving #24071

* #24071: Renamed default const name for being more descriptive

* #24071: Improved comment of property expandedPadding

* #24071: Improved test by expanding the expansion panel by header tap + precise assertion

* #24071: Renamed property to be more descriptive

* #24071: Adjusted property comment and added missing trailing commas

* #24071: Improved test by checking real exact header size

* #24071: Added test for default header padding

* #24071: Improved comment of expandedHeaderPadding + code style adjustments

* #24071: Added missing trailing comma
2020-01-08 12:33:25 -08:00
Tim Sneath
6b66412136 Update first-run information URLs (#48154) 2020-01-08 12:33:03 -08:00