mirror of
https://github.com/koloideal/Casha.git
synced 2026-08-08 17:51:14 +03:00
step
big
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user