QuickSSH/lib/classes/theme_provider.dart

33 lines
1.2 KiB
Dart

import 'package:flutter/material.dart';
// 2. THE MAIN THEME DEFINITIONS
class MyThemes {
static final darkTheme = ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
colorScheme: const ColorScheme.dark(
primary: Color.fromARGB(255, 30, 90, 173),
onPrimary: Color.fromARGB(255, 255, 255, 255),
surface: Color.fromARGB(255, 24, 24, 24), // <--- Use this for Card BG
onSurface: Color.fromARGB(255, 255, 255, 255), // Card Text
onSurfaceVariant: Color.fromARGB(255, 155, 155, 155),
primaryContainer: Color.fromARGB(255, 30, 30, 30),
error: Color.fromARGB(255, 255, 0, 0),
),
);
static final lightTheme = ThemeData(
useMaterial3: true,
brightness: Brightness.light,
colorScheme: const ColorScheme.light(
primary: Color.fromARGB(255, 30, 90, 173),
onPrimary: Color.fromARGB(255, 15, 15, 15),
surface: Color.fromARGB(255, 245, 245, 245), // <--- Use this for Card BG
onSurface: Color.fromARGB(255, 19, 19, 19), // Card Text
onSurfaceVariant: Color.fromARGB(255, 61, 61, 61),
primaryContainer: Color.fromARGB(255, 236, 236, 236),
error: Color.fromARGB(255, 255, 0, 0),
),
);
}