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: Not yet
In stable release: Not yet
References
#API documentation:
Relevant issue:
Relevant PR:
除非另有说明,本文档之所提及适用于 Flutter 的最新稳定版本,本页面最后更新时间: 2025-05-20。 查看文档源码 或者 为本页面内容提出建议.