Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: viewId when no View in context #2662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
adil192 wants to merge 1 commit into singerdmx:master
base: master
Choose a base branch
Loading
from adil192:fix/no-view-in-context

Conversation

Copy link
Contributor

@adil192 adil192 commented Oct 2, 2025
edited
Loading

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /