big
This commit is contained in:
2026-06-28 02:19:57 +03:00
parent ed45748c95
commit bc51609f85
26 changed files with 1757 additions and 1525 deletions
+31
View File
@@ -0,0 +1,31 @@
import 'package:flutter/material.dart';
import 'transaction.dart';
class AppCategory {
final String key;
final TransactionType type;
final String labelEn;
final String labelRu;
final IconData icon;
final Color color;
final String iconName;
final bool isCustom;
final int? id;
const AppCategory({
required this.key,
required this.type,
required this.labelEn,
required this.labelRu,
required this.icon,
required this.color,
required this.iconName,
this.isCustom = false,
this.id,
});
String label(bool isRu) {
final value = isRu ? labelRu : labelEn;
return value.isEmpty ? key : value;
}
}