Import/Export

This commit is contained in:
2025-10-24 21:04:46 +02:00
parent 5b476b6675
commit 1cd4aebbeb
6 changed files with 15 additions and 15 deletions
@@ -463,7 +463,7 @@ class _IgelDetailState extends ConsumerState<IgelDetailScreen> {
// Sicherheits-Reload der Messwerte, damit CSV aktuell ist
final mw = await messRepo.list(widget.igelId);
final sep = ';';
const sep = ';';
final sb = StringBuffer();
sb.writeln([
@@ -1384,7 +1384,7 @@ class _IgelDetailState extends ConsumerState<IgelDetailScreen> {
Text(
_uploadTotal <= 1
? 'Lade Bild hoch …'
: 'Lade Bilder hoch (${_uploadDone}/${_uploadTotal}) …',
: 'Lade Bilder hoch ($_uploadDone/$_uploadTotal) …',
style: const TextStyle(color: Colors.white, fontSize: 16),
),
],
@@ -1592,10 +1592,10 @@ class _WeightChartPainter extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
final paddingLeft = 44.0; // Platz für Y-Labels
final paddingBottom = 28.0; // Platz für X-Labels
final paddingTop = 8.0;
final paddingRight = 12.0;
const paddingLeft = 44.0; // Platz für Y-Labels
const paddingBottom = 28.0; // Platz für X-Labels
const paddingTop = 8.0;
const paddingRight = 12.0;
final area = Rect.fromLTWH(
paddingLeft,
@@ -1631,7 +1631,7 @@ class _WeightChartPainter extends CustomPainter {
final spanG = (maxG - minG).toDouble();
// Y-Ticks (5)
final yTicks = 4;
const yTicks = 4;
for (var i = 0; i <= yTicks; i++) {
final ty = i / yTicks;
final y = area.bottom - ty * area.height;
@@ -1643,7 +1643,7 @@ class _WeightChartPainter extends CustomPainter {
);
// Label
final gVal = (minG + ty * spanG).round();
_drawText(canvas, '${gVal} g', Offset(area.left - 6, y),
_drawText(canvas, '$gVal g', Offset(area.left - 6, y),
align: TextAlign.right, anchor: const Offset(1, 0.5));
}
@@ -178,7 +178,7 @@ class _IgelListState extends ConsumerState<IgelListScreen> {
// Header
final sb = StringBuffer();
final sep = ';';
const sep = ';';
sb.writeln([
// Igel-Stammdaten
'igel_id',