2024-11-08 16:09:46 +00:00
|
|
|
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,
|
|
|
|
),
|
2024-11-09 13:47:40 +00:00
|
|
|
iconTheme: const IconThemeData(fill: 0, weight: 400, opticalSize: 20),
|
2024-11-08 16:09:46 +00:00
|
|
|
);
|
|
|
|
}
|