Commit Graph

8826 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
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 79d0358ece.
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
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 024c49da85 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
Greg Spencer
2d0afe4d83 Add some new examples to Actions and Shortcuts (#72163)
Adds a couple of new examples to the Actions and Shortcuts widgets, and updates some documentation.
2021-01-19 15:45:36 -08:00
xubaolin
e7772d0e2e Reland "Improve the ScrollBar behavior when nested (#71843)" (#74104) 2021-01-19 15:44:03 -08:00
Kate Lovett
3fbe1a5904 Remove deprecation from RenderView (#73748) 2021-01-19 14:49:03 -08:00
Kate Lovett
4feb18ca3d Remove deprecated CupertinoDialog (#73604) 2021-01-19 14:44:03 -08:00
Kate Lovett
164e19beee Remove deprecated actionsForegroundColor (#73745) 2021-01-19 14:39:05 -08:00
Kate Lovett
7a413e715f Expand Stack fix to more exporting libraries (#74077) 2021-01-19 12:24:04 -08:00
Michael Goderbauer
e9a91521f3 Add ios and hot reload/restart infos to restoration docs (#73585) 2021-01-19 09:20:51 -08:00
Kate Lovett
45d01c95de Add fixes for autovalidate deprecation in Form, FormField, TextFormField, and DropdownButtonFormField (#73996) 2021-01-15 17:04:03 -08:00
Jenn Magder
54ef030ab8 Revert "Improve the ScrollBar behavior when nested (#71843)" (#74088)
This reverts commit 99daddc2c0.
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
Kate Lovett
8aeef71e99 Add fixes for deprecations in TextTheme (#73994) 2021-01-15 14:44:04 -08:00
xubaolin
79d0358ece Update PopupMenuButton to match Material Design spec (#70160) 2021-01-15 14:34:05 -08:00
Kate Lovett
aace9a2ac1 Add fixes for Stack deprecation (#73989) 2021-01-15 13:14: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
Madhur Maurya
9209319dd1 Add BottomNavigationBarType.shifting sample #72936 (#73103) 2021-01-15 01:04:03 -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