mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Title Editor: Allow the title to expand
Don't just confine it to a single line.
This commit is contained in:
@ -11,7 +11,6 @@ class NoteTitleEditor extends StatelessWidget {
|
|||||||
|
|
||||||
return TextField(
|
return TextField(
|
||||||
keyboardType: TextInputType.text,
|
keyboardType: TextInputType.text,
|
||||||
maxLines: 1,
|
|
||||||
style: style,
|
style: style,
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
hintText: 'Title',
|
hintText: 'Title',
|
||||||
@ -20,6 +19,7 @@ class NoteTitleEditor extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
controller: textController,
|
controller: textController,
|
||||||
textCapitalization: TextCapitalization.sentences,
|
textCapitalization: TextCapitalization.sentences,
|
||||||
|
maxLines: null,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user