Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Deprecate

- Manual TTID ([#2477](https://github.com/getsentry/sentry-dart/pull/2477))

### Enhancements

- Warning (in a debug build) if a potentially sensitive widget is not masked or unmasked explicitly ([#2375](https://github.com/getsentry/sentry-dart/pull/2375))
Expand Down
1 change: 1 addition & 0 deletions flutter/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ void navigateToAutoCloseScreen(BuildContext context) {
context,
MaterialPageRoute(
settings: const RouteSettings(name: 'AutoCloseScreen'),
// ignore: deprecated_member_use
builder: (context) => SentryDisplayWidget(child: const AutoCloseScreen()),
),
);
Expand Down
6 changes: 5 additions & 1 deletion flutter/lib/src/navigation/sentry_display_widget.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/cupertino.dart';
import 'time_to_initial_display_tracker.dart';

import '../frame_callback_handler.dart';
import 'time_to_initial_display_tracker.dart';

/// A widget that reports the Time To Initially Displayed (TTID) of its child widget.
///
Expand All @@ -27,6 +27,9 @@ import '../frame_callback_handler.dart';
/// See also:
/// - [Sentry's documentation on Flutter integrations](https://docs.sentry.io/platforms/flutter/)
/// for more information on how to integrate Sentry into your Flutter application.
@Deprecated(
'Manual TTID tracking is no longer needed - Sentry automatically tracks TTID accurately.'
' You can safely remove this widget.')
class SentryDisplayWidget extends StatefulWidget {
final Widget child;
final FrameCallbackHandler _frameCallbackHandler;
Expand All @@ -42,6 +45,7 @@ class SentryDisplayWidget extends StatefulWidget {
_SentryDisplayWidgetState createState() => _SentryDisplayWidgetState();
}

// ignore: deprecated_member_use_from_same_package
class _SentryDisplayWidgetState extends State<SentryDisplayWidget> {
@override
void initState() {
Expand Down
1 change: 1 addition & 0 deletions flutter/test/navigation/sentry_display_widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class Fixture {

MaterialApp getSut() {
return MaterialApp(
// ignore: deprecated_member_use_from_same_package
home: SentryDisplayWidget(
frameCallbackHandler: frameCallbackHandler,
child: Text('my text'),
Expand Down
Loading