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

Can I change size of the title of the link and the space at the top? #57

Open
sedsax opened this issue Jan 10, 2024 · 2 comments
Open

Comments

@sedsax
Copy link

sedsax commented Jan 10, 2024

Ekran Resmi 2024-01-10 23 28 55
@sedsax
Copy link
Author

sedsax commented Jan 10, 2024

Card(
shape: Border.all(color: Colors.red),
child: LinkPreview(
enableAnimation: true,
openOnPreviewTitleTap: true,
openOnPreviewImageTap: true,
padding: EdgeInsets.only(right: 30, bottom: 5),
onPreviewDataFetched: (data) {
controller.updateData(_link, data);
},
previewData: controller
.datas[_link], // Pass the preview data from the state
text: _link, //link
linkStyle:
TextStyle(color: Colors.transparent, fontSize: 0),
width: 300,
),
),

@demchenkoalex
Copy link
Member

Hey! Should be easy to find just browsing the code, everything UI related is in a single file. After looking through it, looks like you could try padding param for the space and metadataTitleStyle for the title style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants