Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorunome committed Nov 20, 2020
2 parents e41ffbc + 2515e94 commit 4638f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/code_block.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class _CodeBlockState extends State<CodeBlock> {
}
if (mounted) {
WidgetsBinding.instance.addPostFrameCallback((_) {
setState(() => language = lang);
if (mounted) setState(() => language = lang);
});
}
});
Expand Down

0 comments on commit 4638f6b

Please sign in to comment.