Skip to content

Commit

Permalink
restore ability to pass in key to QuillEditor (#2093)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtallenca authored Aug 5, 2024
1 parent 1cc6a7c commit c739f6c
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit c739f6c

Please sign in to comment.