Skip to content

Commit 15d8b8c

Browse files
committed
use correct property to remove warning
1 parent 50d555d commit 15d8b8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flutter/example/lib/main.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ class MainScaffold extends StatelessWidget {
478478
TooltipButton(
479479
onPressed: () async {
480480
final id = await Sentry.captureMessage('UserFeedback');
481-
if (!context.isMounted) return;
481+
if (!context.mounted) return;
482482
await showDialog(
483483
context: context,
484484
builder: (context) {
@@ -901,7 +901,7 @@ Future<void> makeWebRequest(BuildContext context) async {
901901

902902
await transaction.finish(status: const SpanStatus.ok());
903903

904-
if (!context.isMounted) return;
904+
if (!context.mounted) return;
905905
await showDialog<void>(
906906
context: context,
907907
builder: (context) {
@@ -947,7 +947,7 @@ Future<void> makeWebRequestWithDio(BuildContext context) async {
947947
await span.finish();
948948
}
949949

950-
if (!context.isMounted) return;
950+
if (!context.mounted) return;
951951
await showDialog<void>(
952952
context: context,
953953
builder: (context) {
@@ -977,7 +977,7 @@ Future<void> showDialogWithTextAndImage(BuildContext context) async {
977977
final text =
978978
await DefaultAssetBundle.of(context).loadString('assets/lorem-ipsum.txt');
979979

980-
if (!context.isMounted) return;
980+
if (!context.mounted) return;
981981
await showDialog<void>(
982982
context: context,
983983
// gets tracked if using SentryNavigatorObserver

0 commit comments

Comments
 (0)