Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

removed unwanted setState()

Aniket Singh4bb4f6eee1ad
diff --git a/examples/todo-list/flutter-todo-list/lib/screens/todo.dart b/examples/todo-list/flutter-todo-list/lib/screens/todo.dart
index fc21fa568f2..1d1c0f8cf9e 100644
--- a/examples/todo-list/flutter-todo-list/lib/screens/todo.dart
+++ b/examples/todo-list/flutter-todo-list/lib/screens/todo.dart
@@ -205,7 +205,6 @@ class _TodoPageState extends State<TodoPage> {
);
List<dynamic> value = await getTodo();
todos.clear();
- setState(() {});
for (var element in value) {
todos.add(element);
}
@@ -229,7 +228,6 @@ class _TodoPageState extends State<TodoPage> {
);
List<dynamic> value = await getTodo();
todos.clear();
- setState(() {});
for (var element in value) {
todos.add(element);
}
@@ -283,7 +281,6 @@ class _TodoPageState extends State<TodoPage> {
List<dynamic> value = await getTodo();
todos.clear();
- setState(() {});
for (var element in value) {
todos.add(element);
}