chore: make toolbar key constant to prevent rebuilds (#3361)
This commit is contained in:
parent
9bebe88b96
commit
78b77cfe2e
1 changed files with 3 additions and 1 deletions
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue