33 lines
1.0 KiB
Dart
33 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'theme_type.dart';
|
|
|
|
class AppThemes {
|
|
static ThemeData getLightTheme(ThemeType type) {
|
|
switch (type) {
|
|
case ThemeType.green:
|
|
return ThemeData(primarySwatch: Colors.green);
|
|
case ThemeType.orange:
|
|
return ThemeData(primarySwatch: Colors.orange);
|
|
case ThemeType.blue:
|
|
return ThemeData(primarySwatch: Colors.blue);
|
|
case ThemeType.violet:
|
|
default:
|
|
return ThemeData(primarySwatch: Colors.deepPurple);
|
|
}
|
|
}
|
|
|
|
// static ThemeData getDarkTheme(ThemeType type) {
|
|
// switch (type) {
|
|
// case ThemeType.green:
|
|
// return ThemeData.dark().copyWith(primaryColor: Colors.green);
|
|
// case ThemeType.orange:
|
|
// return ThemeData.dark().copyWith(primaryColor: Colors.orange);
|
|
// case ThemeType.blue:
|
|
// return ThemeData.dark().copyWith(primaryColor: Colors.blue);
|
|
// case ThemeType.violet:
|
|
// default:
|
|
// return ThemeData.dark().copyWith(primaryColor: Colors.deepPurple);
|
|
// }
|
|
// }
|
|
}
|