mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
onTab changed to onTap
This commit is contained in:
1 parent
4bb4f6eee1
commit
45bc4c2af5
1 file changed
+4
-4
@@ -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,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user