You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Material 3 demo already contains a class ElevationInfo with correct corresponding values for level, elevation, and % (alpha blend value as opacity %).
The actual used elevation value is however not being used when the elevated Material is displayed. Instead it shows the level value where elevation value is indicated:
Elevations show wrong elevation dp value
Actual results
The Flutter dp based
elevation
and Material 3 elevation levels are not the same thing.https://m3.material.io/styles/elevation/tokens#7f8c10e0-6d56-4d9f-9525-9ca875758b20
The Material 3 demo shows them as being the same:
Expected results
The Material 3 demo already contains a class
ElevationInfo
with correct corresponding values for level, elevation, and % (alpha blend value as opacity %).The actual used
elevation
value is however not being used when the elevatedMaterial
is displayed. Instead it shows thelevel
value whereelevation
value is indicated:samples/material_3_demo/lib/elevation_screen.dart
Line 149 in 4e09aa2
FIX:
Change the line to:
to get expected and correct elevation actual used elevation dp info on the elevated surfaces, that also match the M3 spec.
The text was updated successfully, but these errors were encountered: