Fixing elevation issues with Material 3 (#110624)

* Added support for surfaceTintColor and shadowColor to the Dialog widgets.
* Updated the defaults for Material.shadowColor and Material.surfaceTint to allow turning off the features with a transparent color.
* Added support for shadowColor and surfaceTintColor for Drawer widget.
This commit is contained in:
Darren Austin
2022-09-06 16:16:45 -07:00
committed by GitHub
parent 1b4b480af6
commit 33ed6a3533
35 changed files with 508 additions and 147 deletions

View File

@@ -16,7 +16,7 @@ void main() {
expect(find.widgetWithText(AppBar, 'AppBar Demo'), findsOneWidget);
Material appbarMaterial = _getAppBarMaterial(tester);
expect(appbarMaterial.shadowColor, null);
expect(appbarMaterial.shadowColor, Colors.transparent);
expect(appbarMaterial.elevation, 0);
await tester.drag(find.text('Item 4'), _kOffset, touchSlopY: 0, warnIfMissed: false);