todo-app/lib/ui
Krzysztof kuhy Rudnicki 9f2ffdb8a9
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
file-length / file length <= 250 lines (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
release-apk / release (APK) (push) Has been cancelled
Attach any file to a note, of any size, not only images
📎 now picks any file (Android: Camera / Gallery / File; desktop: an
unfiltered dialog) and the desktop page accepts any dropped file. Photo and
screenshot formats up to 64 MB are still re-encoded and shown inline;
everything else is stored byte for byte on dufs beside the images and linked
as [name](url), shown as a row with its size that opens in the platform's
app (Android) or a new browser tab (desktop). BACKLOG.md rewrites file links
to ~/data/cloud/todo-images/ like image links.

There is no size cap, so no layer holds a file in memory: uploads and
downloads stream through DufsImageClient, writes land in a .tmp renamed when
whole (an interrupted download no longer leaves a truncated file that looks
done), the desktop page POSTs the browser's own Blob with fetch, and Android's
"File" uses file_picker, because file_selector's Android side reads the whole
file into memory on the UI thread. Verified with a 1 GB file end to end on
desktop (peak RSS +36 MB) and on an API 36 emulator.

The wrapper serves attachments from the origin that holds the GitHub token
and the notes, so only script-free types open inline (nosniff), the rest
download; writes carrying another site's Origin are refused (this also
closes cross-site overwrites of the backup files); and attachment routes run
concurrently so a long upload or a playing video cannot stall the page.

Also: cupertino_icons 2.0.0 (unused, but the freshness gate blocks the
pubspec otherwise), open_file 4.0.0 and file_picker 13.1.0 pinned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 12:17:06 +02:00
..
images Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
attachment_picking.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
capture_app_bar.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
capture_draft.dart Attach images to notes, stored on dufs and kept offline 2026-09-25 14:11:15 +02:00
capture_screen_images.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
capture_screen_sync.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
capture_screen_widget.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
capture_screen.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
capture_status_footer.dart Split capture_screen.dart into ten files under the cap 2026-08-14 16:25:51 +02:00
capture_status.dart Split capture_screen.dart into ten files under the cap 2026-08-14 16:25:51 +02:00
capture_sync_runner.dart Split capture_screen.dart into ten files under the cap 2026-08-14 16:25:51 +02:00
cloud_images_settings.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
github_mirror_screen_widget.dart Split the last three oversized lib/bin files 2026-08-14 16:29:35 +02:00
github_mirror_screen.dart Use the shared github_device_auth package 2026-08-15 16:15:10 +02:00
image_attach.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
image_input_files.dart Attach images to notes, stored on dufs and kept offline 2026-09-25 14:11:15 +02:00
image_input_io.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
image_input_web.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
image_input.dart Attach images to notes, stored on dufs and kept offline 2026-09-25 14:11:15 +02:00
markdown_view.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
note_actions_sheet.dart Adopt the shared design_system package, dropping theme.dart and confirm.dart 2026-08-14 22:59:59 +02:00
note_date_range_field.dart Enforce the 250-line file cap, and split the first four files 2026-08-14 16:01:24 +02:00
note_detail_screen.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
note_editor_chrome.dart Split note_editor.dart into nine files under the cap 2026-08-14 16:12:04 +02:00
note_editor_document.dart Split note_editor.dart into nine files under the cap 2026-08-14 16:12:04 +02:00
note_editor_images.dart Attach images to notes, stored on dufs and kept offline 2026-09-25 14:11:15 +02:00
note_editor_mode.dart Split note_editor.dart into nine files under the cap 2026-08-14 16:12:04 +02:00
note_editor_raw_field.dart Adopt the shared design_system package, dropping theme.dart and confirm.dart 2026-08-14 22:59:59 +02:00
note_editor_step_page.dart Split note_editor.dart into nine files under the cap 2026-08-14 16:12:04 +02:00
note_editor_views.dart Split note_editor.dart into nine files under the cap 2026-08-14 16:12:04 +02:00
note_editor_widget.dart Attach images to notes, stored on dufs and kept offline 2026-09-25 14:11:15 +02:00
note_editor_wizard.dart Split note_editor.dart into nine files under the cap 2026-08-14 16:12:04 +02:00
note_editor.dart Attach images to notes, stored on dufs and kept offline 2026-09-25 14:11:15 +02:00
note_form_chrome_gate.dart Share one note form between capture and the detail screen 2026-08-14 17:48:39 +02:00
note_form.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
note_meta_row.dart Share one note form between capture and the detail screen 2026-08-14 17:48:39 +02:00
note_tile.dart Enforce the 250-line file cap, and split the first four files 2026-08-14 16:01:24 +02:00
notes_filter_sheet.dart Enforce the 250-line file cap, and split the first four files 2026-08-14 16:01:24 +02:00
notes_list_navigation.dart Share one note form between capture and the detail screen 2026-08-14 17:48:39 +02:00
notes_list_screen.dart Share one note form between capture and the detail screen 2026-08-14 17:48:39 +02:00
settings_screen.dart Attach images to notes, stored on dufs and kept offline 2026-09-25 14:11:15 +02:00