survey_kit icon indicating copy to clipboard operation
survey_kit copied to clipboard

Unable to load in getJsonTask() from example code

Open gerryau opened this issue 2 years ago • 5 comments

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.

gerryau avatar May 28 '22 11:05 gerryau

Bump.

gerryau avatar Jun 20 '22 04:06 gerryau

Hi gerryau,

thanks for letting me know! I fixed the issue and it should work again.

Best Marvin

Numoy avatar Jun 20 '22 08:06 Numoy

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.

binaryjc avatar Dec 02 '22 05:12 binaryjc

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.

Technorocker avatar Jan 18 '23 04:01 Technorocker

I will look into it. Thanks for letting me know.

Numoy avatar Jan 18 '23 16:01 Numoy