cpd_David_und_Yusuf/lib/theme/theme.dart

80 lines
2.5 KiB
Dart
Raw Permalink Normal View History

import 'package:flutter/material.dart';
ThemeData halloweenTheme = ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
2024-06-07 20:08:07 +02:00
colorScheme: const ColorScheme.dark(
surface: Color(0xff2d2d2d), // Dark grey for a spooky base
primary: Color(0xffff7518), // Halloween orange
secondary: Color(0xff8b0000), // Deep red for a sinister touch
tertiary: Colors.black, // Black for an eerie contrast
),
scaffoldBackgroundColor: const Color(0xff2d2d2d), // Match the surface color
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
backgroundColor: WidgetStateProperty.all<Color>(
const Color(0xffff7518), // Halloween orange
),
foregroundColor: WidgetStateProperty.all<Color>(
Colors.black, // Text color to contrast with button background
),
),
),
iconTheme: const IconThemeData(
color: Color(0xffff7518), // Halloween orange
),
2024-06-07 20:08:07 +02:00
chipTheme: const ChipThemeData(
backgroundColor: Color(0xff8b0000), // Deep red
selectedColor: Color(0xffff7518), // Halloween orange
labelStyle: TextStyle(
color: Colors.white, // Text color for better readability
),
),
2024-06-07 20:08:07 +02:00
sliderTheme: const SliderThemeData(
activeTickMarkColor: Color(0xffff7518), // Halloween orange
activeTrackColor: Color(0xffff7518), // Halloween orange
thumbColor: Color(0xffff7518), // Halloween orange
valueIndicatorTextStyle: TextStyle(
color: Colors.black, // Text color for the value indicator
),
),
2024-06-07 20:08:07 +02:00
dividerTheme: const DividerThemeData(
color: Colors.white, // Halloween orange
thickness: 1.0, // Set the thickness of the divider
),
2024-06-07 20:08:07 +02:00
textTheme: const TextTheme(
displayLarge: TextStyle(
color: Colors.white, // Halloween orange
fontSize: 32.0,
fontWeight: FontWeight.bold,
),
displayMedium: TextStyle(
color: Colors.white, // Deep red
fontSize: 28.0,
fontWeight: FontWeight.bold,
),
displaySmall: TextStyle(
color: Colors.white, // White for contrast
fontSize: 24.0,
fontWeight: FontWeight.bold,
),
bodyLarge: TextStyle(
color: Colors.white, // Halloween orange
fontSize: 16.0,
),
bodyMedium: TextStyle(
color: Colors.white, // White for contrast
fontSize: 14.0,
),
bodySmall: TextStyle(
color: Colors.white, // Deep red
fontSize: 12.0,
),
labelLarge: TextStyle(
color: Colors.white, // Black for contrast
fontSize: 16.0,
fontWeight: FontWeight.bold,
),
),
);