Skip to content

Commit d15b8a6

Browse files
committed
fixed warnigs for scrolling mechanism
1 parent 384eba7 commit d15b8a6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/controller/WidgetController.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,13 @@ class WidgetController extends GetxController {
5353
Future<void> sendData() async {
5454
int i=1;
5555
List<Map<String, String>> l = [];
56-
allData.forEach((task) {
57-
56+
for (var task in allData) {
5857
l.add({
5958
"description": "$i.${task.description}",
6059
"urgency": 'urgencyLevel : ${urgency(task)}',
6160
});
6261
i++;
63-
});
64-
65-
print(jsonEncode(l));
66-
// print(jsonEncode(allData.map((task) => task.toJson()).toList()));
62+
}
6763
await HomeWidget.saveWidgetData(
6864
'tasks', jsonEncode(l));
6965
}

0 commit comments

Comments
 (0)