Skip to content

Commit

Permalink
v9: Remove renderer from flutter_context
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Feb 25, 2025
1 parent bb29ef9 commit 86013ff
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ class FlutterEnricherEventProcessor implements EventProcessor {
// ignore: deprecated_member_use
final hasRenderView = _widgetsBinding?.renderViewElement != null;

final renderer = _options.rendererWrapper.getRenderer()?.name;

return <String, String>{
'has_render_view': hasRenderView.toString(),
if (tempDebugBrightnessOverride != null)
Expand All @@ -156,7 +154,6 @@ class FlutterEnricherEventProcessor implements EventProcessor {
// Also always fails in tests.
// See https://github.com/flutter/flutter/issues/83919
// 'window_is_visible': _window.viewConfiguration.visible,
if (renderer != null) 'renderer': renderer,
if (appFlavor != null) 'appFlavor': appFlavor!,
};
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../../sentry_flutter.dart';
import 'view_hierarchy_event_processor.dart';

/// A [Integration] that renders an ASCII represention of the entire view
/// A [Integration] that renders an ASCII representation of the entire view
/// hierarchy of the application when an error happens and includes it as an
/// attachment to the [Hint].
class SentryViewHierarchyIntegration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ void main() {
final flutterContext = event?.contexts['flutter_context'];
expect(flutterContext, isNotNull);
expect(flutterContext, isA<Map<String, String>>());
expect(flutterContext['renderer'], isNotNull);
});

testWidgets('accessibility context', (WidgetTester tester) async {
Expand Down

0 comments on commit 86013ff

Please sign in to comment.