refactor: обновить модели категорий с добавлением userId

This commit is contained in:
2025-06-09 22:39:27 +03:00
committed by Sanders
parent a68c2cd4b3
commit c68bd8b79c
+3 -2
View File
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import '../models/category.dart';
import '../services/user_service.dart';
/// Утилиты для работы с категориями
class CategoryUtils {
@@ -13,7 +14,7 @@ class CategoryUtils {
name: 'Зарплата',
color: Colors.green,
icon: Icons.attach_money,
isIncome: true,
isIncome: true
),
Category(
id: 'income_gift',
@@ -50,7 +51,7 @@ class CategoryUtils {
name: 'Развлечения',
color: Colors.purple,
icon: Icons.movie,
isIncome: false,
isIncome: false, userId: '',
),
Category(
id: 'expense_utilities',