Refactor note handling to include ID generation and improve initialization logic

This commit is contained in:
2025-05-23 22:40:19 +02:00
parent 89f8889f1e
commit dfe1c2b34c
3 changed files with 95 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
import 'package:intl/intl.dart';
class Note {
final String id;
final String date;
late final String displayDate;
String content;
@@ -9,6 +10,7 @@ class Note {
String problemReason;
Note({
required this.id,
required this.date,
required this.content,
this.snippet,