From c739f6c12d839c5264550cdeb212ceed831e6759 Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Mon, 5 Aug 2024 16:57:53 -0700 Subject: [PATCH] restore ability to pass in key to QuillEditor (#2093) --- lib/src/editor/editor.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/src/editor/editor.dart b/lib/src/editor/editor.dart index 060b4cb5..1409032e 100644 --- a/lib/src/editor/editor.dart +++ b/lib/src/editor/editor.dart @@ -141,6 +141,7 @@ class QuillEditor extends StatefulWidget { factory QuillEditor({ required FocusNode focusNode, required ScrollController scrollController, + Key? key, /// Controller and configurations are required /// @@ -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