feat:增加hive模块
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user