feat: add placeholder to card editor (#3870)

This commit is contained in:
Mathias Mogensen
2023-11-07 15:58:22 +01:00
committed by GitHub
parent 8116ea1dba
commit fe23183aef
4 changed files with 17 additions and 1 deletions

View File

@ -116,6 +116,10 @@ class _RowEditorState extends State<RowEditor> {
context: context,
padding: const EdgeInsets.symmetric(horizontal: 10),
),
showParagraphPlaceholder: (editorState, node) =>
editorState.document.isEmpty,
placeholderText: (node) =>
LocaleKeys.cardDetails_notesPlaceholder.tr(),
),
),
);