mirror of
https://github.com/smmarty/friflex_flutter_starter.git
synced 2025-12-22 09:30:45 +00:00
feat
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:friflex_starter/app/theme/app_colors_scheme.dart';
|
||||
|
||||
/// Класс для конфигурации светлой/темной темы приложения
|
||||
abstract class AppTheme {
|
||||
/// Геттер для получения светлой темы
|
||||
static ThemeData get light => ThemeData.light();
|
||||
static ThemeData get light =>
|
||||
ThemeData.light().copyWith(extensions: <ThemeExtension<Object?>>[AppColors.light]);
|
||||
|
||||
/// Геттер для получения темной темы
|
||||
static ThemeData get dark => ThemeData.dark();
|
||||
static ThemeData get dark =>
|
||||
ThemeData.dark().copyWith(extensions: <ThemeExtension<Object?>>[AppColors.dark]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user