feat:更新代办事项存储功能

This commit is contained in:
2025-11-07 21:24:09 +08:00
parent 00e65bc5be
commit 27f0638c01
9 changed files with 80 additions and 92 deletions

View File

@@ -17,7 +17,7 @@ class TodoAdapter extends TypeAdapter<Todo> {
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return Todo(
id: fields[0] as int?,
id: fields[0] as int,
title: fields[1] as String,
content: fields[2] as String,
isCompleted: fields[3] as bool,