Open Paul-N opened 1 year ago
Thanks for your report, @Paul-N
I can see there is an exception with current sample code on website.
E/flutter (26290): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<Map<String, dynamic>>'
E/flutter (26290): #0 _SampleAppPageState.loadData.<anonymous closure> (package:reproduce_issues/website_8920.dart:44:7)
E/flutter (26290): #1 State.setState (package:flutter/src/widgets/framework.dart:1139:30)
E/flutter (26290): #2 _SampleAppPageState.loadData (package:reproduce_issues/website_8920.dart:43:5)
E/flutter (26290): <asynchronous suspension>
E/flutter (26290):
@atsansone I update issue title based on OP's additional fix from https://github.com/flutter/website/issues/8921 (He already updated issue description in this issue as well). Hope it is an appropriate one :)
Page URL
https://docs.flutter.dev/get-started/flutter-for/xamarin-forms-devs/
Page source
https://github.com/flutter/website/tree/main/src/get-started/flutter-for/xamarin-forms-devs.md
Describe the problem
Sources of samples with json http requests are incorrect
Expected fix
For
https://docs.flutter.dev/get-started/flutter-for/xamarin-forms-devs#what-is-the-equivalent-of-devicebeginonmainthread-in-flutter
For
https://docs.flutter.dev/get-started/flutter-for/xamarin-forms-devs#how-do-i-show-the-progress-for-a-long-running-task
Additional context
Check also complete sources of
https://docs.flutter.dev/get-started/flutter-for/xamarin-forms-devs#what-is-the-equivalent-of-devicebeginonmainthread-in-flutter
section. I don't have fix for this yet.