Skip to content
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

restore ability to pass in key to QuillEditor #2093

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/src/editor/editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class QuillEditor extends StatefulWidget {
factory QuillEditor({
required FocusNode focusNode,
required ScrollController scrollController,
Key? key,

/// Controller and configurations are required
///
Expand All @@ -164,13 +165,15 @@ class QuillEditor extends StatefulWidget {
return QuillEditor._(
focusNode: focusNode,
scrollController: scrollController,
controller: controller);
controller: controller,
key: key);
}

const QuillEditor._(
{required this.focusNode,
required this.scrollController,
required this.controller});
required this.controller,
super.key});

factory QuillEditor.basic({
/// The controller for the quill editor widget of flutter quill
Expand Down