leafittome/lib/core/theme/app_theme.dart
cschlaefke a5b79193dd Projekt in leafittome umbenannt (App-Name LeafItToMe, Bundle-ID dev.leafittome.app)
- pubspec, Paket-Imports, App-Klasse, ARB-Titel, iOS/Android-Konfiguration
- README und Doku auf neuen Namen und Repo leafittome umgestellt

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-18 22:25:41 +02:00

35 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
/// LeafItToMe-Grün als Ausgangsfarbe für das gesamte Farbschema.
const _seedColor = Color(0xFF2E7D32);
ThemeData buildAppTheme({
required Brightness brightness,
required bool highContrast,
}) {
final colorScheme = ColorScheme.fromSeed(
seedColor: _seedColor,
brightness: brightness,
// Material 3 kann kontrastverstärkte Varianten desselben Schemas erzeugen.
contrastLevel: highContrast ? 1.0 : 0.0,
);
return ThemeData(
colorScheme: colorScheme,
// Großzügige Touch-Ziele: wichtig für die Bedienbarkeit durch ältere Nutzer.
materialTapTargetSize: MaterialTapTargetSize.padded,
visualDensity: VisualDensity.standard,
filledButtonTheme: FilledButtonThemeData(
style: FilledButton.styleFrom(
minimumSize: const Size(64, 52),
textStyle: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
),
),
listTileTheme: const ListTileThemeData(
minVerticalPadding: 12,
),
snackBarTheme: const SnackBarThemeData(
behavior: SnackBarBehavior.floating,
),
);
}