Skip to content

Commit 05012db

Browse files
authored
Add a unique key to the notifications widget so they don't get reparented (#8867)
* Add a unique key to the notifications widget so they don't get reparented
1 parent a0239f8 commit 05012db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/devtools_app/lib/src/framework/notifications_view.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ class _NotificationOverlay extends StatelessWidget {
172172
}
173173

174174
class _Notification extends StatefulWidget {
175-
const _Notification({required this.message, required this.remove});
175+
_Notification({required this.message, required this.remove})
176+
: super(key: UniqueKey());
176177

177178
final NotificationMessage message;
178179
final void Function(_Notification) remove;

0 commit comments

Comments
 (0)