Removed semantics elevation and thickness
Summary
#Both elevation and thickness semantics properties and their related APIs were removed.
Context
#Both elevation and thickness semantics properties were created for Fuchsia's 3D rendering. They were never implemented and thus remained unused. There was also no other known usage for these properties. These properties added unnecessary code complexity and have been removed.
Description of change
#The following properties are removed SemanticsConfiguration.elevation
, SemanticsConfiguration.thickness
, SemanticsNode.thickness
, SemanticsNode.elevation
, and SemanticsNode.elevationAdjustment
.
Migration guide
#If you previously assigned these properties, remove the assignments.
Code before migration:
void describeSemanticsConfiguration(SemanticsConfiguration config) {
config.label = 'my label';
config.elevation = 1;
config.thickness = 1;
}
Code after migration:
void describeSemanticsConfiguration(SemanticsConfiguration config) {
config.label = 'my label';
}
Timeline
#Landed in version: 3.32.0 In stable release: TBD
References
#API documentation:
Relevant issue:
Relevant PR:
Unless stated otherwise, the documentation on this site reflects the latest stable version of Flutter. Page last updated on 2025-05-15. View source or report an issue.