diff --git a/experimental/material_3_demo/lib/elevation_screen.dart b/experimental/material_3_demo/lib/elevation_screen.dart index 0f3d6299e..6522e9b8e 100644 --- a/experimental/material_3_demo/lib/elevation_screen.dart +++ b/experimental/material_3_demo/lib/elevation_screen.dart @@ -23,7 +23,10 @@ class ElevationScreen extends StatelessWidget { ), ), ), - ElevationGrid(surfaceTintColor: surfaceTint), + ElevationGrid( + surfaceTintColor: surfaceTint, + shadowColor: Colors.transparent, + ), SliverList( delegate: SliverChildListDelegate([ const SizedBox(height: 10), @@ -146,7 +149,7 @@ class _ElevationCardState extends State { style: Theme.of(context).textTheme.labelMedium, ), Text( - '${widget.info.level.toInt()} dp', + '${widget.info.elevation.toInt()} dp', style: Theme.of(context).textTheme.labelMedium, ), if (widget.surfaceTint != null) diff --git a/material_3_demo/lib/elevation_screen.dart b/material_3_demo/lib/elevation_screen.dart index 0f3d6299e..6522e9b8e 100644 --- a/material_3_demo/lib/elevation_screen.dart +++ b/material_3_demo/lib/elevation_screen.dart @@ -23,7 +23,10 @@ class ElevationScreen extends StatelessWidget { ), ), ), - ElevationGrid(surfaceTintColor: surfaceTint), + ElevationGrid( + surfaceTintColor: surfaceTint, + shadowColor: Colors.transparent, + ), SliverList( delegate: SliverChildListDelegate([ const SizedBox(height: 10), @@ -146,7 +149,7 @@ class _ElevationCardState extends State { style: Theme.of(context).textTheme.labelMedium, ), Text( - '${widget.info.level.toInt()} dp', + '${widget.info.elevation.toInt()} dp', style: Theme.of(context).textTheme.labelMedium, ), if (widget.surfaceTint != null)