Adding an article to week 02 of articles of the week (#51)

pull/66/head
florianh01 4 years ago committed by Xin Yao
parent 91bbdd2a41
commit 9519b75554
  1. 2
      lib/widgets/raw_editor.dart

@ -905,6 +905,7 @@ class RawEditorState extends EditorState
SchedulerBinding.instance.addPostFrameCallback( SchedulerBinding.instance.addPostFrameCallback(
(Duration _) => _updateOrDisposeSelectionOverlayIfNeeded()); (Duration _) => _updateOrDisposeSelectionOverlayIfNeeded());
if (!mounted) return;
setState(() { setState(() {
// Use widget.controller.value in build() // Use widget.controller.value in build()
// Trigger build and updateChildren // Trigger build and updateChildren
@ -959,6 +960,7 @@ class RawEditorState extends EditorState
} }
_onChangedClipboardStatus() { _onChangedClipboardStatus() {
if (!mounted) return;
setState(() { setState(() {
// Inform the widget that the value of clipboardStatus has changed. // Inform the widget that the value of clipboardStatus has changed.
// Trigger build and updateChildren // Trigger build and updateChildren

Loading…
Cancel
Save