Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to display a valid link preview. #8

Closed
SatyamKr07 opened this issue Apr 7, 2021 · 5 comments
Closed

Not able to display a valid link preview. #8

SatyamKr07 opened this issue Apr 7, 2021 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@SatyamKr07
Copy link

SatyamKr07 commented Apr 7, 2021

i am using this link - "https://www.brainyquote.com/topics/motivational-quotes" and it's saying opps! . You can check, it's a valid link. Also i tried displaying google forms preview and it gives error -'show your custom error body.'

*In whatsApp I am able to see the preview though"

googel docs link : "https://forms.gle/tKgJm9A3kLrrje4j6"
Note: "this is short url of google form. original url shows the preview of google forms but not the short url".
code snippet used:

AnyLinkPreview(
link: "https://forms.gle/tKgJm9A3kLrrje4j6",
// link:"https://www.brainyquote.com/topics/motivational-quotes",
displayDirection: UIDirection.UIDirectionHorizontal,
showMultimedia: true,
bodyMaxLines: 5,
bodyTextOverflow: TextOverflow.ellipsis,
titleStyle: TextStyle(
color: Colors.blue,
fontWeight: FontWeight.bold,
fontSize: 15,
),
bodyStyle: TextStyle(color: Colors.black, fontSize: 12),
errorBody: 'Show my custom error body',
errorTitle: 'Show my custom error title',
errorWidget: Container(
color: Colors.grey[300],
child: Text('Oops'),
),
errorImage: "https://google.com/",
cache: Duration(days: 7),
backgroundColor: Colors.blue[50],
borderRadius: 12,
removeElevation: true,
// boxShadow: [BoxShadow(blurRadius: 3, color: Colors.grey)],
),

@SatyamKr07 SatyamKr07 changed the title Not display a valid link preview. Not able display a valid link preview. Apr 7, 2021
@SatyamKr07 SatyamKr07 changed the title Not able display a valid link preview. Not able to display a valid link preview. Apr 7, 2021
@sur950
Copy link
Owner

sur950 commented May 11, 2021

Hi @SatyamKr07

Thanks for using the plugin. I would like to bring to your notice that there's few url's which are restricted & preview might not work. (Like Twitter, any link without metadata, Google form with limited access etc.)

Whatsapp has powerful link preview system where almost all kinds of links show preview where as same link might not show preview in other professional chat applications like Slack, Skype, Teams etc.

However, let me try with the above mentioned links & comeback again on what exactly is happening.

Thanks!

@sur950 sur950 added the bug Something isn't working label May 11, 2021
@SatyamKr07
Copy link
Author

hey @sur950 , any updates on this?

@sur950
Copy link
Owner

sur950 commented Nov 15, 2021

Hi @SatyamKr07

I am fully occupied with the things. I am calling out some community members to help fix this minor bug.
Thanks!

@sur950 sur950 added the help wanted Extra attention is needed label Nov 15, 2021
@sur950
Copy link
Owner

sur950 commented Jan 8, 2022

Hey @SatyamKr07

Now with latest version, It is working fine. Feel free to re-open the issue if the issue still exists.

@sur950 sur950 closed this as completed Jan 8, 2022
@SatyamKr07
Copy link
Author

Thanks a lot! You rock @sur950 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants