# Removed semantics elevation and thickness

> Removed elevation and thickness from semantics properties.




:::important
These breaking change docs are accurate, as of the release
under which they are published. Over time, the
workarounds described here might become inaccurate.
We don't, in general, keep these breaking change docs up
to date as of each release.

这些破坏性改动文档的准确性仅限于其发布时对应的版本。
随着时间的推移，文档中描述的方案可能会逐渐失效。
通常情况下，我们不会在每次发布新版本时都对这些文档进行同步更新。

The [breaking change index file](/release/breaking-changes)
lists the docs created for each release.

[破坏性改动列表](/release/breaking-changes) 
列出了每个版本的文档。

:::


## 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:

```dart
void describeSemanticsConfiguration(SemanticsConfiguration config) {
  config.label = 'my label';
  config.elevation = 1;
  config.thickness = 1;
}
```

Code after migration:

```dart
void describeSemanticsConfiguration(SemanticsConfiguration config) {
  config.label = 'my label';
}
```

## Timeline

Landed in version: 3.34.0-0.0.pre<br>
In stable release: 3.35

## References

API documentation:

* [`SemanticsConfiguration`][]
* [`SemanticsNode`][]

Relevant issue:

* [Issue 166092][]

Relevant PR:

* [PR 169382][]

[`SemanticsConfiguration`]: https://api.flutter-io.cn/flutter/semantics/SemanticsConfiguration-class.html
[`SemanticsNode`]: https://api.flutter-io.cn/flutter/semantics/SemanticsNode-class.html
[Issue 166092]: https://github.com/flutter/flutter/issues/166092
[PR 169382]: https://github.com/flutter/flutter/pull/169382

