We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b911d commit 0339f79Copy full SHA for 0339f79
lib/src/code_field/code_field.dart
@@ -266,7 +266,7 @@ class _CodeFieldState extends State<CodeField> {
266
disableSpellCheckIfWeb();
267
268
WidgetsBinding.instance.addPostFrameCallback((_) {
269
- if(!mounted){
+ if (!mounted) {
270
return;
271
}
272
final double width = _codeFieldKey.currentContext!.size!.width;
@@ -320,7 +320,7 @@ class _CodeFieldState extends State<CodeField> {
320
void rebuild() {
321
setState(() {
322
323
324
325
326
// For some reason _codeFieldKey.currentContext is null in tests
0 commit comments