From e8c8dbe3438f8a4312248776943ce5745df3b10b Mon Sep 17 00:00:00 2001 From: Mounir Bouaiche Date: Thu, 3 Aug 2023 13:37:11 +0100 Subject: [PATCH] Add placeholder to basic factory --- lib/src/widgets/editor.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/widgets/editor.dart b/lib/src/widgets/editor.dart index 46fafe3b..fb1e495f 100644 --- a/lib/src/widgets/editor.dart +++ b/lib/src/widgets/editor.dart @@ -204,6 +204,7 @@ class QuillEditor extends StatefulWidget { bool autoFocus = true, bool expands = false, FocusNode? focusNode, + String? placeholder, /// The locale to use for the editor toolbar, defaults to system locale /// More at https://github.com/singerdmx/flutter-quill#translation @@ -221,6 +222,7 @@ class QuillEditor extends StatefulWidget { keyboardAppearance: keyboardAppearance ?? Brightness.light, locale: locale, embedBuilders: embedBuilders, + placeholder: placeholder, ); }