Surface/lib/theme.dart
2024-11-09 00:09:46 +08:00

26 lines
464 B
Dart

import 'package:flutter/material.dart';
class ThemeSet {
ThemeData light;
ThemeData dark;
ThemeSet({required this.light, required this.dark});
}
ThemeSet createAppThemeSet() {
return ThemeSet(
light: createAppTheme(),
dark: createAppTheme(),
);
}
ThemeData createAppTheme() {
return ThemeData(
useMaterial3: false,
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.indigo,
brightness: Brightness.light,
),
);
}