4392 Commits

Author SHA1 Message Date
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
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
LongCatIsLooong
a4b27cbf63
Update CupertinoSlidingSegmentedControl (#73772) 2021-01-20 14:54:03 -08:00
LongCatIsLooong
61299b1621
Revert "[text_input] prepare for custom text input sources (#72803)" (#74349) 2021-01-20 13:54:06 -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
Hans Muller
c66596e595
Removed uses of AppBarTheme.color in packages/flutter (#74273) 2021-01-20 12:19:18 -08:00
RomanJos
2a2e0cf100
Add clipBehavior to InteractiveViewer (#73281)
More intuitive control over whether the child can overflow out of InteractiveViewer, deterring a lot of confusion we were seeing.
2021-01-20 11:57:37 -08:00
Greg Spencer
2e3d3e6522
Revert "ListTile Material Ripple and Shape Patch (#73618)" (#74335)
This reverts commit 024c49da856918bfa6e65bb622a5bc9df91a276d because it breaks Google internal tests.
2021-01-20 11:42:48 -08:00
Nathan Walker
024c49da85
ListTile Material Ripple and Shape Patch (#73618)
This PR replaces the ColoredBox that ListTile uses with an Ink widget. That Ink widget is given a ShapeDecoration with the ListTile's color and shape. This fixes issues where the ListTile color would obscure material ripple effects, and cause the specified shape to not be respected.

List which issues are fixed by this PR. You must list at least one issue.

Fixes #73616
Fixes #63877
Fixes #67117

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

I modified a handful of tests related to ListTiles. The tests I changed had implementation-specific ways of checking the ListTile color. I have rewritten those so that instead of checking for a ColoredBox with a specific color, they check that a path is painted with the correct color.

I added the following tests to list_tile_test.dart:

"ListTile shows Material ripple effects on top of tileColor" (Regression test for #73616)
"ListTile shape is painted correctly" (Regression test for #63877)
I added the following test to sliver_prototype_item_extent_test.dart:

"SliverPrototypeExtentList prototypeItem paint transform is zero" (Regression test for #67117)
2021-01-19 19:28:13 -08:00
Todd Volkert
5322c6f860
Fix RenderCustomPaint intrinsics (#72103)
Make RenderCustomPaint consult its preferred size for intrinsics when it has no child. Currently, it returns 0 for its intrinsics, even if it has a non-zero preferred size.
2021-01-19 16:24:34 -08:00
Kate Lovett
80f88a7981
Remove deprecated Scaffold.resizeToAvoidBottomPadding (#72890) 2021-01-19 16:14:05 -08:00
xubaolin
e7772d0e2e
Reland "Improve the ScrollBar behavior when nested (#71843)" (#74104) 2021-01-19 15:44:03 -08:00
Kate Lovett
164e19beee
Remove deprecated actionsForegroundColor (#73745) 2021-01-19 14:39:05 -08:00
Jenn Magder
54ef030ab8
Revert "Improve the ScrollBar behavior when nested (#71843)" (#74088)
This reverts commit 99daddc2c07840f06ee7fff1d4c11675bfe97a36.
2021-01-15 16:15:52 -08:00
xubaolin
99daddc2c0
Improve the ScrollBar behavior when nested (#71843) 2021-01-15 15:24:03 -08:00
xubaolin
79d0358ece
Update PopupMenuButton to match Material Design spec (#70160) 2021-01-15 14:34:05 -08:00
chunhtai
6a4808b4ed
Remove unused semantics tap action for readonly textfield and selectable text (#74066) 2021-01-15 12:54:03 -08:00
chunhtai
1b310472c0
Fix canpop logic to be more robust (#73993) 2021-01-15 12:29:04 -08:00
J-P Nurmi
b73722b1d9
[text_input] prepare for custom text input sources (#72803) 2021-01-15 11:24:04 -08:00
Hans Muller
ed0aed7d24
Removed the color field from AppBarTheme (#73732) 2021-01-14 21:06:54 -08:00
Hans Muller
f63eb0b281
BorderTween.lerp supports null begin/end values (#73992) 2021-01-14 17:16:04 -08:00
Kate Lovett
2a64fdbc43
Restore adaptive nature to new Scrollbar (#73899) 2021-01-14 15:39:03 -08:00
xubaolin
3b2044ab57
Improve the Scaffold.bottomSheet update behavior (#73084) 2021-01-14 15:24:04 -08:00
xubaolin
217cd102bb
fix an assertion causes by zero offset pointer scroll (#73016) 2021-01-14 13:59:03 -08:00
Pedro Massango
ac2f62a9c1
Provide a way to change the default PopupMenuButton's icon size (#68000) 2021-01-14 13:24:05 -08:00
xubaolin
737824db40
snackBar should paint above the bottomSheet (#73558) 2021-01-14 13:09:04 -08:00
Shi-Hao Hong
ce94266840
Apply ListTile colors to leading and trailing text widgets (#73925) 2021-01-14 02:34:02 -08:00
xubaolin
3cd837fc2e
Fix single ToggleButton border painting bugs (#73780) 2021-01-14 00:04:03 -08:00
Pedro Massango
333dc5d88a
Fixes: "FloatingActionButton.extended's isExtended property if false should show icon, not label" (#72431)
* Fix extended FAB with isExtended set to false showing both icon and label
2021-01-14 13:56:54 +08:00
Hans Muller
f5578257ce
Added CupertinoButton alignment property (#73900) 2021-01-13 16:29:36 -08:00
Hans Muller
489d29c181
Added ButtonStyle.alignment property (#73894) 2021-01-13 14:40:21 -08:00
Gary Qian
49667ba2f5
DeferredComponent utility class for manual handling of Deferred Components (#72895) 2021-01-13 14:04:06 -08:00
Justin McCandless
d9f3d2e846
Cupertino text selection menu customization (#73578)
* Making a custom iOS-style text selection menu is now much easier.
  * Exposes a new widget for the toolbar, a new widget for the buttons, and a new widget for the layout.
2021-01-13 11:14:14 -08:00
Jia Hao
8a5ace25a5
Improve performance of Widget Tests (#70730) 2021-01-12 17:29:03 -08:00
xubaolin
492ec23b34
Re-enable a ensureVisible test case (#73545) 2021-01-12 17:19:03 -08:00
Kate Lovett
09008e6f71
Add ScrollbarTheme/ScrollbarThemeData (#72308) 2021-01-12 17:14:04 -08:00
xubaolin
32dc1b7d00
Add [pointerCount] property to Scale Gesture Details (#73474) 2021-01-11 19:14:04 -08:00
Devon Carew
e143ac2d85
increase the value of debugImageOverheadAllowance from 104 bytes to 128kb (#73720) 2021-01-11 16:34:27 -08:00
Pedro Massango
0b5905070c
Fix "RefreshIndicator.color didn't update at runtime" (#73566)
* update dependencies when widget configuration changes
2021-01-11 12:57:40 -08:00
Renzo Olivares
59783d0fe1
Selecting spaces on SelectableText (mobile) (#73300) 2021-01-11 11:24:03 -08:00
Hans Muller
6f002abcd7
Revert "Prevent text from overflowing in OutlineButton and OutlinedButton label. (#70872)" (#73715) 2021-01-11 10:19:04 -08:00
Hans Muller
9a43df5142
Deprecated obsolete Material classes: FlatButton, RaisedButton, OutlineButton (#73352) 2021-01-08 15:44:47 -08:00
Michael Goderbauer
24d434d156
Revert "Revert "Fix _LateInitializationError for RenderObjectElement.renderObject (#70974)" (#73575)" (#73580) 2021-01-08 12:49:04 -08:00
Michael Goderbauer
edfb6305d8
Revert "Fix _LateInitializationError for RenderObjectElement.renderObject (#70974)" (#73575)
This reverts commit c243d834ce41bc5d279b0264efbc6b3c9e0df53d.
2021-01-08 10:24:10 -08:00