You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code is placed on my StatefulWidget.
LinkPreview(
enableAnimation:true,
onPreviewDataFetched: (data) {
print(data); // data is emptysetState(() {
httpdata = data;
});
},
previewData: httpdata,
text: s, // the url is passed here
width:MediaQuery.of(context).size.width *0.7,
),
Called with two URLs on the Web platform I get the following response in the data parameter and (of course) no preview is shown, but why is the PreviewData object empty? I have a feeling that the data are never fetched because of an async call somewhere in the flutter_link_previewer library?
The following code is placed on my
StatefulWidget
.Called with two URLs on the Web platform I get the following response in the
data
parameter and (of course) no preview is shown, but why is thePreviewData
object empty? I have a feeling that the data are never fetched because of an async call somewhere in the flutter_link_previewer library?An error comes in
getPreviewData
whenhttp.get
is called and it goes to the catch block.Please have a look at this post for solving the problem: dart-flutter-http-request-raises-xmlhttprequest-error as it is probably the issue???
The text was updated successfully, but these errors were encountered: