OpenHarmony 与 Flutter 的完美融合:打造现代化个人财务管理应用(更新:快速标签功能)(1.20.0版本)
·
/// OpenHarmony 交易记录模型
class Transaction {
final String id;
final String title;
final double amount;
final DateTime date;
final TransactionType type;
final String category;
final String? note;
final List tags;
final bool isPinned; // 新增:是否置顶
Transaction({
required this.id,
required this.title,
required this.amount,
required this.date,
required this.type,
required this.category,
this.note,
this.tags = const [],
this.isPinned = false, // 默认不置顶
});
}
欢迎加入开源鸿蒙跨平台社区:https://openharmonycrossplatform.csdn.net
更多推荐


所有评论(0)