feat(app): Реализовать тему через theme_tailor (#13)

* chore(.gitignore): добавил игнорирование кодогенерации
* chore(pubspec): добавил theme_tailor в зависимости
* feat(app): добавил theme_tailor кодогенерацию темы
* refactor(app, debug): заменил использование расширение контекста
* chore(.gitignore): убрал игнорирование кодогена
* feat(app): добавил сгенерированный файл
This commit is contained in:
zl0y4951
2025-06-19 12:51:57 +03:00
committed by GitHub
parent 4d746ce23c
commit 427a821e5d
8 changed files with 157 additions and 81 deletions

View File

@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:friflex_starter/app/app_context_ext.dart';
import 'package:friflex_starter/app/theme/app_colors_scheme.dart';
/// {@template ThemeScreen}
/// Экран для отладки темы приложения
@@ -10,7 +11,7 @@ class ThemeScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final colors = context.colors;
final colors = context.appColors;
return Scaffold(
appBar: AppBar(title: const Text('Theme')),
body: Center(
@@ -25,7 +26,7 @@ class ThemeScreen extends StatelessWidget {
),
const SizedBox(height: 16),
ColoredBox(
color: context.colors.testColor,
color: context.appColors.testColor,
child: const SizedBox(height: 100, width: 100),
),
const SizedBox(height: 16),