feat:增加hive模块

This commit is contained in:
2025-11-07 17:21:21 +08:00
parent 0f106f6adc
commit 00e65bc5be
12 changed files with 579 additions and 43 deletions

View File

@@ -1,6 +1,6 @@
import 'package:flisp_app/models/todo.dart';
List<TodoItem> getActiveTodos(TodoTab currentTab, List<TodoItem> todos) {
List<Todo> getActiveTodos(TodoTab currentTab, List<Todo> todos) {
switch (currentTab) {
case TodoTab.active:
return todos.where((todo) => !todo.isCompleted).toList();