mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +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),
|
floatingActionButton: buildFAB(widget, this),
|
||||||
body: Column(
|
body: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
titleEditor,
|
if (widget.note.canHaveMetadata) titleEditor,
|
||||||
Expanded(child: FocusScope(child: checklistWidget)),
|
Expanded(child: FocusScope(child: checklistWidget)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -66,7 +66,7 @@ class MarkdownEditorState extends State<MarkdownEditor> implements EditorState {
|
|||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
_NoteTitleEditor(_titleTextController),
|
if (note.canHaveMetadata) _NoteTitleEditor(_titleTextController),
|
||||||
_NoteBodyEditor(
|
_NoteBodyEditor(
|
||||||
_textController,
|
_textController,
|
||||||
autofocus: widget.autofocusOnEditor,
|
autofocus: widget.autofocusOnEditor,
|
||||||
|
@ -47,7 +47,7 @@ class NoteViewer extends StatelessWidget {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
if (note.created != null && showJournalHeader)
|
if (note.created != null && showJournalHeader)
|
||||||
JournalEditorHeader(note),
|
JournalEditorHeader(note),
|
||||||
if (showTitle)
|
if (showTitle && note.canHaveMetadata)
|
||||||
NoteTitleHeader(note.title),
|
NoteTitleHeader(note.title),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(top: 8.0, bottom: 8.0),
|
padding: const EdgeInsets.only(top: 8.0, bottom: 8.0),
|
||||||
|
Reference in New Issue
Block a user