File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
flutter/lib/src/view_hierarchy Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 38
38
- [ changelog] ( https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8360 )
39
39
- [ diff] ( https://github.com/getsentry/sentry-cocoa/compare/8.35.1...8.36.0 )
40
40
41
+ ### Fixes
42
+
43
+ - Only access renderObject if ` hasSize ` is true ([ #2263 ] ( https://github.com/getsentry/sentry-dart/pull/2263 ) )
44
+
41
45
## 8.8.0
42
46
43
47
### Features
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ class _TreeWalker {
255
255
double ? alpha;
256
256
257
257
final renderObject = element.renderObject;
258
- if (renderObject is RenderBox ) {
258
+ if (renderObject is RenderBox && renderObject.hasSize ) {
259
259
final offset = renderObject.localToGlobal (Offset .zero);
260
260
if (offset.dx > 0 ) {
261
261
x = offset.dx;
You can’t perform that action at this time.
0 commit comments