mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
Remove the title editor if it cannot be stored
It just makes it confusing for the user otherwise.
This commit is contained in:
@ -124,7 +124,7 @@ class ChecklistEditorState extends State<ChecklistEditor>
|
||||
floatingActionButton: buildFAB(widget, this),
|
||||
body: Column(
|
||||
children: <Widget>[
|
||||
titleEditor,
|
||||
if (widget.note.canHaveMetadata) titleEditor,
|
||||
Expanded(child: FocusScope(child: checklistWidget)),
|
||||
],
|
||||
),
|
||||
|
@ -66,7 +66,7 @@ class MarkdownEditorState extends State<MarkdownEditor> implements EditorState {
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
_NoteTitleEditor(_titleTextController),
|
||||
if (note.canHaveMetadata) _NoteTitleEditor(_titleTextController),
|
||||
_NoteBodyEditor(
|
||||
_textController,
|
||||
autofocus: widget.autofocusOnEditor,
|
||||
|
@ -47,7 +47,7 @@ class NoteViewer extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
if (note.created != null && showJournalHeader)
|
||||
JournalEditorHeader(note),
|
||||
if (showTitle)
|
||||
if (showTitle && note.canHaveMetadata)
|
||||
NoteTitleHeader(note.title),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 8.0, bottom: 8.0),
|
||||
|
Reference in New Issue
Block a user