26 lines
464 B
Dart
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,
|
||
|
),
|
||
|
);
|
||
|
}
|