Skip to content

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

onTab changed to onTap

Aniket Singh45bc4c2af51e
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 1d1c0f8cf9e..7c88411a7d8 100644
--- a/examples/todo-list/flutter-todo-list/lib/screens/todo.dart
+++ b/examples/todo-list/flutter-todo-list/lib/screens/todo.dart
@@ -101,7 +101,7 @@ class _TodoPageState extends State<TodoPage> {
Future<void> displayTextInputDialog({
required BuildContext context,
- void Function()? onTab,
+ void Function()? onTap,
required TextEditingController taskCtrl,
}) async {
return showDialog(
@@ -119,7 +119,7 @@ class _TodoPageState extends State<TodoPage> {
),
smallGap,
MaterialButton(
- onPressed: onTab,
+ onPressed: onTap,
child: const Text(
'Add Task',
style: TextStyle(
@@ -170,7 +170,7 @@ class _TodoPageState extends State<TodoPage> {
displayTextInputDialog(
context: context,
taskCtrl: _taskEditingController,
- onTab: () async {
+ onTap: () async {
await editTask(
id: todos[index]['id'].toString(),
task: _taskEditingController.text,
@@ -270,7 +270,7 @@ class _TodoPageState extends State<TodoPage> {
displayTextInputDialog(
context: context,
taskCtrl: _taskEditingController,
- onTab: () async {
+ onTap: () async {
await addTodo(
task: _taskEditingController.text,
);