chore: make toolbar key constant to prevent rebuilds (#3361)

This commit is contained in:
ggurdin 2025-07-07 15:16:19 -04:00 committed by GitHub
parent 9bebe88b96
commit 78b77cfe2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,9 @@ class WordZoomWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
final GlobalKey cardKey = GlobalKey();
final GlobalKey cardKey = MatrixState.pAnyState
.layerLinkAndKey("word-zoom-card-${token.text.uniqueKey}")
.key;
final overlayColor = Theme.of(context).scaffoldBackgroundColor;
return Stack(
children: [