Files
Melo/lib/shared/theme.dart
T

36 lines
944 B
Dart

import 'package:flutter/material.dart';
/// Melo-Theme: Schwarz + Rot.
class MeloTheme {
static const Color red = Color(0xFFE50914);
static const Color black = Color(0xFF0A0A0A);
static const Color surface = Color(0xFF161616);
static ThemeData get dark {
final scheme = ColorScheme.fromSeed(
seedColor: red,
brightness: Brightness.dark,
).copyWith(
primary: red,
surface: black,
);
return ThemeData(
useMaterial3: true,
colorScheme: scheme,
scaffoldBackgroundColor: black,
cardColor: surface,
sliderTheme: const SliderThemeData(
activeTrackColor: red,
thumbColor: red,
trackHeight: 3,
),
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
backgroundColor: surface,
selectedItemColor: red,
unselectedItemColor: Colors.white54,
type: BottomNavigationBarType.fixed,
),
);
}
}