Files
Handwerks_app/theme/app_theme.dart
2026-04-03 20:42:47 +02:00

38 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
/// Ruhiges, seriöses Farbschema für Handwerks-Betriebe (Elektrik, Maler, SHK).
class AppTheme {
AppTheme._();
static const Color _seed = Color(0xFF0D47A1);
static ThemeData light() {
final scheme = ColorScheme.fromSeed(
seedColor: _seed,
brightness: Brightness.light,
surface: const Color(0xFFF5F7FA),
);
return ThemeData(
useMaterial3: true,
colorScheme: scheme,
appBarTheme: AppBarTheme(
centerTitle: true,
backgroundColor: scheme.surface,
foregroundColor: scheme.onSurface,
elevation: 0,
scrolledUnderElevation: 1,
),
inputDecorationTheme: InputDecorationTheme(
filled: true,
border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
),
filledButtonTheme: FilledButtonThemeData(
style: FilledButton.styleFrom(
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 14),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
),
),
);
}
}