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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user