Thank you for your quick response!
Even when I connect my phone I’m getting the following errors
Launching lib/main.dart on Mi 9 SE in debug mode...
Running Gradle task 'assembleDebug'...
lib/screens/ViewTodo.dart:76:37: Error: Operator '[]' cannot be called on 'Map<String, dynamic>?' because it is potentially null.
- 'Map' is from 'dart:core'.
var todo = result.data["todo"];
^
lib/screens/ViewTodo.dart:263:36: Error: The getter 'scache' isn't defined for the class 'ViewTodoState'.
- 'ViewTodoState' is from 'package:todo_strapi/screens/ViewTodo.dart' ('lib/screens/ViewTodo.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'scache'.
return scache;
^^^^^^
FAILURE: Build failed with an exception.
* Where:
Script '/Users/Robert/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1005
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/Robert/development/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 19s
Exception: Gradle task assembleDebug failed with exit code 1