Skip to content

Conversation

adil192
Copy link
Contributor

@adil192 adil192 commented Oct 2, 2025

Description

When using the quill editor in the screenshot package, there is no View associated with the context, leading View.of(context) calls to throw.

Note that this PR fixes the View.of(context) error, but the following QuillRawEditorState.renderEditor null error is not fixed yet:

════════ Exception caught by foundation library ════════════════════════════════
The following _TypeError was thrown while dispatching notifications for FocusNode:
Null check operator used on a null value

When the exception was thrown, this was the stack:
#0      QuillRawEditorState.renderEditor (package:flutter_quill/src/editor/raw_editor/raw_editor_state.dart:1177:32)
raw_editor_state.dart:1177
#1      RawEditorStateTextInputClientMixin._updateSizeAndTransform (package:flutter_quill/src/editor/raw_editor/raw_editor_state_text_input_client_mixin.dart:390:20)
raw_editor_state_text_input_client_mixin.dart:390
#2      RawEditorStateTextInputClientMixin.openConnectionIfNeeded (package:flutter_quill/src/editor/raw_editor/raw_editor_state_text_input_client_mixin.dart:97:7)
raw_editor_state_text_input_client_mixin.dart:97
#3      QuillRawEditorState.requestKeyboard (package:flutter_quill/src/editor/raw_editor/raw_editor_state.dart:1194:7)
raw_editor_state.dart:1194

Related issues

We had a similar problem before with:

Type of Change

  • Feature: New functionality without breaking existing features.
  • 🛠️ Bug fix: Resolves an issue without altering current behavior.
  • 🧹 Refactor: Code reorganization, no behavior change.
  • Breaking: Alters existing functionality and requires updates.
  • 🧪 Tests: New or modified tests
  • 📝 Documentation: Updates or additions to documentation.
  • 🗑️ Chore: Routine tasks, or maintenance.
  • Build configuration change: Build/configuration changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant