80 lines
2.5 KiB
Dart
80 lines
2.5 KiB
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
ThemeData halloweenTheme = ThemeData(
|
||
|
useMaterial3: true,
|
||
|
brightness: Brightness.dark,
|
||
|
colorScheme: ColorScheme.dark(
|
||
|
surface: const Color(0xff2d2d2d), // Dark grey for a spooky base
|
||
|
primary: const Color(0xffff7518), // Halloween orange
|
||
|
secondary: const 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
|
||
|
),
|
||
|
chipTheme: ChipThemeData(
|
||
|
backgroundColor: const Color(0xff8b0000), // Deep red
|
||
|
selectedColor: const Color(0xffff7518), // Halloween orange
|
||
|
labelStyle: TextStyle(
|
||
|
color: Colors.white, // Text color for better readability
|
||
|
),
|
||
|
),
|
||
|
sliderTheme: SliderThemeData(
|
||
|
activeTickMarkColor: const Color(0xffff7518), // Halloween orange
|
||
|
activeTrackColor: const Color(0xffff7518), // Halloween orange
|
||
|
thumbColor: const Color(0xffff7518), // Halloween orange
|
||
|
valueIndicatorTextStyle: TextStyle(
|
||
|
color: Colors.black, // Text color for the value indicator
|
||
|
),
|
||
|
),
|
||
|
dividerTheme: DividerThemeData(
|
||
|
color: Colors.white, // Halloween orange
|
||
|
thickness: 1.0, // Set the thickness of the divider
|
||
|
),
|
||
|
textTheme: 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,
|
||
|
),
|
||
|
),
|
||
|
);
|