8858 Commits

Author SHA1 Message Date
Alexandre Ardhuin
d546e1d311
fix for upcoming lint use_named_constants (#74788) 2021-01-27 20:20:44 +01:00
Shi-Hao Hong
c6a428d500
[State Restoration] CupertinoModalPopupRoute (#74805)
* Expose CupertinoModalPopupRoute for state restoration

* Add state restoration test, expose kCupertinoModalBarrierColor
2021-01-28 03:00:01 +08:00
Hans Muller
2d9fad09ba
Added ButtonStyle.fixedSize (#74773) 2021-01-27 10:54:06 -08:00
Mouad Debbar
7f4bb1eea9
Use the shortcuts temporary solution only on web (#74768) 2021-01-27 10:49:04 -08:00
Jonah Williams
7c0300a358
[flutter] throw more specific error messages if a lerp'd type does not conform to Tween API (#74684) 2021-01-27 09:20:56 -08:00
Darren Austin
7db172b24d
Added a ReorderableListView.builder constructor (#74697)
Added constructor parameters to the ReorderableList that were missing from ScrollView. Also replace a lot of doc comments with macro templates to reduce duplication.
2021-01-26 17:18:40 -08:00
Todd Volkert
5584fce36e
Switch global key registry to be owned by the build owner. (#74701)
This gets away from the extra static map for global key registrations
in favor of the data structures being instance properties of the build
owner. This still allows for semantically-equivalent static access through
the binding (which in turn gives access to the build owner).

This also adds a `BuildOwner.globalKeyCount` getter to get the count
of global keys associated with widgets currently in the tree.
2021-01-26 14:28:58 -08:00
xster
00143388a2
default CupertinoSliverNavigationBar's stretch to false (#74669) 2021-01-26 09:24:04 -08:00
Greg Spencer
2eeeba9c09
Remove nullOk from Actions.invoke, add Actions.maybeInvoke (#74680)
This removes the nullOk parameter from Actions.invoke, and adds an Actions.maybeInvoke function. The difference is that invoke will now always (in debug mode) throw if an enabled action isn't found, and maybeInvoke will return null if an enabled action isn't found. The invoke function can still return null as the result of the invocation, though, so I purposely didn't change the return value to Object from Object?.
2021-01-25 20:52:30 -08:00
Daniel
fbc3683b18
ChoiceChip's default "selected" style in dark mode theme is unreadable #49984 (#74610) 2021-01-25 20:04:03 -08:00
Yurii Cherniavskyi
6d9e3c3fa9
Expose insetPadding and clipBehavior in SimpleDialog (#73571) 2021-01-25 19:44:05 -08:00
Mouad Debbar
47f8e956d3
Swap the Shortcuts widget with its child in TextField (#74683) 2021-01-25 19:19:04 -08:00
Alexandre Ardhuin
bd69fa5935
use predefined constants (#74627) 2021-01-25 18:59:05 -08:00
Darren Austin
efe8a397a8
Added some tests and comments from Shi-Hao for the ReorderableLists. (#74689) 2021-01-25 18:54:10 -08:00
xubaolin
1e7f3955ce
fix a RenderBox.size access exception (#74402) 2021-01-25 18:54:05 -08:00
Greg Spencer
8f10a262c9
Remove vestigal nullOk parameter from Localizations.localeOf (#74657)
This removes the nullOk parameter on the Localizations.localeOf method. This was already changed to have a maybeLocaleOf method, but the nullOk parameter wasn't removed because some third party tests failed. Those have been updated, so this can go in now.
2021-01-25 15:04:47 -08:00
Michael Goderbauer
b400534dc7
remove some stray nullOK mentions from docs (#74661) 2021-01-25 11:34:04 -08:00
YeungKC
e623d93d2b
Fix dropdown menu overscroll (#73654) 2021-01-25 10:49:04 -08:00
Chinmoy
76d411433f
Added padding property to NavigationRail items (#69404) 2021-01-25 10:44:05 -08:00
Kenzie Schmoll
c89d649847
Add connectedVmServiceUri service extension and set from flutter_tools (#74534)
* Add connectedVmServiceUri service extension and set from flutter_tools
2021-01-25 10:40:14 -08:00
Darren Austin
8529e5a05c
New Reorderable list widgets (#74299)
Introduced new widget/ReorderableList and widget/SliverReorderableList widgets.
2021-01-22 21:44:13 -08:00
Justin McCandless
f3947ea0cd
Autocomplete (Material) (#73753)
* Material Autocomplete widget
2021-01-23 10:02:30 +08:00
Justin McCandless
d9a69e3b72
Desktop keys: up/down + line modifier (#74425)
up/down arrows + cmd (optionally + shift) works on desktop to jump selection to beginning/end of field
2021-01-22 17:56:18 -08:00
Mouad Debbar
e204eb2fca
Space and arrow keys in a text field shouldn't scroll (#74454) 2021-01-22 16:39:04 -08:00
Paul Berry
177fd261bb
Remove workaround now that type promotion accounts for local boolean variables. (#74449) 2021-01-22 16:34:06 -08:00
Kenzie Schmoll
0b3162bd9c
Create custom DiagnosticsNode type for DevTools deep links. (#74455)
* Create custom DiagnosticsNode type for DevTools deep links.
2021-01-22 16:29:42 -08:00
Kate Lovett
74e5182147
Remove span deprecations (#73747) 2021-01-22 16:29:02 -08:00
Kate Lovett
5af0429fa5
Remove API (#73746) 2021-01-22 16:24:04 -08:00
Shi-Hao Hong
5801f0e5fe
Expose DialogRoutes for state restoration support (#73829) 2021-01-22 16:20:44 -08:00
Shi-Hao Hong
3f37d86fff
Document TableRowInkWell and DataTable interactions better (#73018) 2021-01-22 16:19:06 -08:00
Zain Ur Rehman
46b0797b58
Expose AnimationController property to showBottomSheet/showModalBottomSheet (#72541)
* Expose AnimationController property to showBottomSheet/showModalBottomSheet (#72541)
ong <shihaohong@google.com>

Co-authored-by: Kate Lovett <katelovett@google.com>
Co-authored-by: Shi-Hao Hong <shihaohong@google.com>
2021-01-22 17:48:49 +08:00
xubaolin
5b1a771269
MaterialBanner alignment fixes and improvements (#74309) 2021-01-21 18:44:03 -08:00
Kate Lovett
eb9bac6489
ScaffoldMessenger only shows to root nested Scaffold (#74093) 2021-01-21 17:34:05 -08:00
xubaolin
4bdea117a4
fix a tap gesture exception (#73846) 2021-01-21 17:29:04 -08:00
Kate Lovett
550a85dabd
Remove deprecated Element methods (#72903) 2021-01-21 17:24:05 -08:00
Zain Ur Rehman
45cf27923a
[showModalBottomSheet] fix: showModalBottomSheet does not move along keyboard (#71636) 2021-01-21 17:19:04 -08:00
Jonah Williams
cecb7f3b58
Revert "Update PopupMenuButton to match Material Design spec (#70160)" (#74439)
This reverts commit 79d0358ece1ea00d7007e83dacb4343c7db5b419.
2021-01-21 12:51:53 -08:00
Pierre-Louis
fe87bc69b6
Add material icons golden test (#74131)
* Create icons golden test

* Update icons_test.dart

* Update icons_test.dart

* Update icons_test.dart

* change test name

* Add ability to load material icon font for golden tests

* formatting

* Skip test for browser

* Add end of file newline

* Rewrite with different method

* Add skip for browser
2021-01-21 17:31:35 +01:00
Kenzie Schmoll
b45088c0cf
Print DevTools inspector links in RenderFlex Overflow errors (#74251) 2021-01-21 02:59:04 -08:00
Justin McCandless
a8471a61f8
Material Desktop Context Menu (#74286)
Very simple right-click context menu for Windows and Linux in a Material-esque style.
2021-01-20 16:29:01 -08:00
Kate Lovett
aed4518569
Remove deprecated WaitUntil[NoTransientCallbacks, NoPendingFrame, FirstFrameRasterized] methods from flutter_driver (#73754) 2021-01-20 16:19:03 -08:00
Kate Lovett
97481e125a
Remove deprecated Layer.findAll (#73749) 2021-01-20 15:44:02 -08:00
Muskan Jain
d57512ce08
AdoptAWidget: ColorFiltered (#71093) 2021-01-20 15:34:03 -08:00
Ian Hickson
80142d4560
Update the alt text to match recommendations in https://html.spec.whatwg.org/multipage/images.html#alt (#74089) 2021-01-20 15:14:03 -08:00
LongCatIsLooong
a4b27cbf63
Update CupertinoSlidingSegmentedControl (#73772) 2021-01-20 14:54:03 -08:00
LongCatIsLooong
e21344faa5
minor streetAddressLine2 documentation update (#73370) 2021-01-20 14:49:03 -08:00
LongCatIsLooong
61299b1621
Revert "[text_input] prepare for custom text input sources (#72803)" (#74349) 2021-01-20 13:54:06 -08:00
Michael Goderbauer
def31b42b1
Improve DebugCreator docs (#74341) 2021-01-20 13:42:21 -08:00
stuartmorgan
48b3e8bf3a
Don't use iOS font names for the macOS theme (#74342)
macOS was sharing the iOS font theme, but the names of the underlying
fonts differ between the two platforms, so this was actually using the
fallback font from the engine. Instead of using the underlying font
names on macOS, which is no longer allowed by CoreText, use the
meta-font returned by systemFontOfSize:

This has been verified on 10.15; older versions of macOS may need
different font names as the handling of these fonts have changed over
time. Fixing older versions as necessary will be handled in a follow-up.

See https://github.com/flutter/flutter/issues/57805
2021-01-20 13:21:07 -08:00
Justin McCandless
24e195d918
Mac context menu (#73882)
A very minimal right-click menu for Mac desktop.
2021-01-20 13:18:25 -08:00