mirror of
https://github.com/smmarty/friflex_flutter_starter.git
synced 2025-12-22 01:20:46 +00:00
14 lines
619 B
Dart
14 lines
619 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:friflex_starter/app/theme/app_colors_scheme.dart';
|
|
|
|
/// Класс для конфигурации светлой/темной темы приложения
|
|
abstract class AppTheme {
|
|
/// Геттер для получения светлой темы
|
|
static ThemeData get light =>
|
|
ThemeData.light().copyWith(extensions: <ThemeExtension<Object?>>[AppColors.light]);
|
|
|
|
/// Геттер для получения темной темы
|
|
static ThemeData get dark =>
|
|
ThemeData.dark().copyWith(extensions: <ThemeExtension<Object?>>[AppColors.dark]);
|
|
}
|