Skip to content

Commit a166ba9

Browse files
committed
supporting task on create sync for Replica
1 parent 9741929 commit a166ba9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/app/modules/home/views/add_task_bottom_sheet_new.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,9 @@ class AddTaskBottomSheet extends StatelessWidget {
493493
// storageWidget = StorageWidget.of(context);
494494
var storageWidget = Get.find<HomeController>();
495495
if (value) {
496-
storageWidget.synchronize(context, true);
496+
storageWidget.refreshReplicaTasks();
497497
}
498-
await storageWidget.refreshReplicaTasks();
498+
await storageWidget.refreshReplicaTaskList();
499499
} on FormatException catch (e) {
500500
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
501501
content: Text(

lib/app/v3/models/task.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,9 @@ class TaskForC {
9292
: <Map<String, dynamic>>[],
9393
};
9494
}
95+
96+
@override
97+
String toString() {
98+
return "TaskForC(${toJson().toString()})";
99+
}
95100
}

0 commit comments

Comments
 (0)