App-thema’s, meerschermen, annotaties en grafiekslides #1

Merged
brenno merged 9 commits from feature/app-theming-and-code-slides into main 2026-06-07 10:40:44 +00:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 4849003338 - Show all commits

View file

@ -1,5 +1,9 @@
import 'dart:convert'; import 'dart:convert';
/// Directory (relative to the deck) where linked chart CSVs are kept, so the
/// data files stay tidily in one place separate from images/media.
const String chartDataDirName = 'data';
/// Supported chart kinds for a chart slide. /// Supported chart kinds for a chart slide.
enum ChartType { bar, line, pie } enum ChartType { bar, line, pie }

View file

@ -222,7 +222,7 @@ class FileService {
final spec = ChartSpec.parse(s.customMarkdown); final spec = ChartSpec.parse(s.customMarkdown);
final src = spec.source; final src = spec.source;
if (src == null) return s; if (src == null) return s;
final rel = addAsset(src, 'data'); final rel = addAsset(src, chartDataDirName);
if (rel == null) { if (rel == null) {
return s.copyWith( return s.copyWith(
customMarkdown: spec.copyWith(clearSource: true).toBlock(), customMarkdown: spec.copyWith(clearSource: true).toBlock(),