Long-pressing a note in the list opens it in view mode with the scroll position at the bottom of the file. Switching to edit mode the first time positions the cursor at the end of the text and scrolls there too, so the user can immediately append content. Implementation: - NoteEditorScreen gains a scrollToEnd parameter (default false) - A ScrollController is attached to the view/edit SingleChildScrollView - After content loads with scrollToEnd=true, two post-frame callbacks fire (first renders the content, second has a stable maxScrollExtent) then jumpTo(maxScrollExtent) - _cursorAtEnd flag is consumed on the first Mode Edit switch: sets selection to text.length, requests focus, and scrolls to bottom - NoteListScreen ListTile gets onLongPress that navigates with scrollToEnd: true and reloads on return Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| themes | ||
| codefield.dart | ||
| main.dart | ||
| note_editor.dart | ||
| note_list.dart | ||
| read_only.dart | ||
| texts.dart | ||