survey_kit
survey_kit copied to clipboard
Unable to load in getJsonTask() from example code
When I try to run the following getJsonTask()
from the example code, the app just stays on the loading screen for some time.
Using Flutter 3.0.1
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Container(
color: Colors.white,
child: Align(
alignment: Alignment.center,
child: FutureBuilder<Task>(
future: getJsonTask(), //HERE
builder: (context, snapshot) {
.....
Running getSampleTask()
it works fine.
Bump.
Hi gerryau,
thanks for letting me know! I fixed the issue and it should work again.
Best Marvin
latest update on example json might have broke it. I cant load it using getJsonTask() on sample app. I tried using the old format on pub.dev, it works fine.
Im just trying the example right now and getting same issue, loading onto chrome debugging from vscode leaves it at progression spinner, the getsampletask still works though. Does the json approach work? I think that would be better to create a questionnaie file for a large dataset or questions and answers.
I will look into it. Thanks for letting me know.