refactor: обновить модели категорий с добавлением userId
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user