flyerhq / flutter_link_previewer

Customizable link and URL preview extracted from the provided text with the ability to render from the cache. Ideal for chat applications.
MIT License
72 stars 75 forks source link

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

Open sedsax opened 7 months ago

sedsax commented 7 months ago
Ekran Resmi 2024-01-10 23 28 55
sedsax commented 7 months ago

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 commented 7 months ago

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