mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-11-21 19:12:17 +01:00
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
repo-contract / repo contract (push) Has been cancelled
crdt_sync_flutter 0.9.0's installAppErrors in main(): uncaught errors and every spinner shown over 1 s (WaitWatch: sync.run, mirror.test) upload to RTDB /todo/errors/<device> with the versionCode, where the PC app-errors ingest files board tickets (kuhyx/utils DOCS-app-errors.md). The app moves to material_ui first: sync_settings_ui 0.8.x and design_system 0.4.x sit on it, and Flutter 3.50 deprecates flutter/material. Pins: crdt_sync 0.14.1, csf 0.9.0, ssui 0.8.3, gda 0.5.1, design_system 0.4.1, image 4.13.1, mcp_dart 2.4.4. file_picker stays 13.3.3, held by data_transfer_flutter 0.2.2 (allowlisted, self-clearing). appRoute takes a route name so each report names its screen; the release build passes APP_BUILD/APP_VERSION. Nothing new on screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.1 KiB
Dart
31 lines
1.1 KiB
Dart
/// Glyphs standing for note templates and their sections in the editor.
|
|
///
|
|
/// The section labels stay in `note_template.dart`: they are the note's own
|
|
/// `## heading` format, read by `parse()`, BACKLOG.md and the CLI. Only what
|
|
/// the editor paints around them is a glyph; the label and helper are spoken.
|
|
library;
|
|
|
|
import 'package:material_ui/material_ui.dart';
|
|
|
|
import 'package:todo/data/note_template.dart';
|
|
|
|
/// The glyph for template [t]: a structured form, or a blank page.
|
|
IconData templateIcon(NoteTemplate t) =>
|
|
t.isFreeform ? Icons.note_outlined : Icons.assignment_outlined;
|
|
|
|
/// [t] as its glyph, spoken as its label.
|
|
Widget templateGlyph(NoteTemplate t) =>
|
|
Icon(templateIcon(t), semanticLabel: t.label);
|
|
|
|
/// The glyph heading a guided step, keyed by the section's stable `key`.
|
|
IconData sectionIcon(TemplateSection s) => switch (s.key) {
|
|
'title' => Icons.title,
|
|
'what' => Icons.lightbulb_outline,
|
|
'where' => Icons.place_outlined,
|
|
'must' => Icons.rule,
|
|
'done' => Icons.emoji_events_outlined,
|
|
'verify' => Icons.devices,
|
|
'refs' => Icons.menu_book_outlined,
|
|
_ => Icons.notes,
|
|
};
|