Closed Helocominc closed 1 year ago
You can do that on your side as well
String getUrlHost(String url) {
Uri uri = Uri.parse(url);
return uri.host.replaceFirst(RegExp(r"^www."), '');
}
Okay thanks. I will try that.
Hi @Helocominc
We are not rendering the title, or body manually. Whatever the meta-data is giving us, we are rendering the same. I guess for youtube videos, it is giving full length instead of just the domain name or some description.
You can always use your method to fetch meta-data and render your own UI by using the above-mentioned helper function. Thanks for helping the community @LeGoffMael
Regards, Suresh
Add the option to get domain name of the website url in![Issue](https://user-images.githubusercontent.com/90664424/199545915-68ed73b6-f77d-4ba9-a0cd-f0daf0778e19.jpg)
metadata
. Instead of displaying the full url just show the domain.This is the expected domain sample![expected](https://user-images.githubusercontent.com/90664424/199545949-e19aa32d-d90b-494d-b5b4-86b4f339b7a8.jpg)