mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Editors: Allow the title to be edited even when YAML is disabled
This commit is contained in:
@ -177,7 +177,7 @@ class ChecklistEditorState extends State<ChecklistEditor>
|
||||
parentFolder: widget.note.parent,
|
||||
body: Column(
|
||||
children: <Widget>[
|
||||
if (widget.note.canHaveMetadata) titleEditor,
|
||||
titleEditor,
|
||||
Expanded(child: FocusScope(child: checklistWidget)),
|
||||
],
|
||||
),
|
||||
|
@ -114,11 +114,10 @@ class MarkdownEditorState extends State<MarkdownEditor>
|
||||
var editor = EditorScrollView(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
if (note.canHaveMetadata)
|
||||
NoteTitleEditor(
|
||||
_titleTextController,
|
||||
_noteTextChanged,
|
||||
),
|
||||
NoteTitleEditor(
|
||||
_titleTextController,
|
||||
_noteTextChanged,
|
||||
),
|
||||
NoteBodyEditor(
|
||||
textController: _textController,
|
||||
autofocus: widget.isNewNote,
|
||||
|
@ -62,7 +62,7 @@ class NoteViewer extends StatelessWidget {
|
||||
var view = EditorScrollView(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
if (note.canHaveMetadata) NoteTitleHeader(note.title),
|
||||
NoteTitleHeader(note.title),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 8.0, bottom: 8.0),
|
||||
child: MarkdownBody(
|
||||
|
Reference in New Issue
Block a user