[auth] Fix rendering issue #3229 (#3230)

## Description
Fixes the bug in the code list by adding a key to the CodeWidget
This commit is contained in:
Kishan Dhankecha 2024-09-12 11:18:08 +05:30 committed by GitHub
parent f2f6160aff
commit 29a88e673f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -407,9 +407,12 @@ class _HomePageState extends State<HomePage> {
}
final newIndex = index - indexOffset;
final code = _filteredCodes[newIndex];
return ClipRect(
child: CodeWidget(
_filteredCodes[newIndex],
key: ValueKey(code.hashCode),
code,
),
);
}),