KVerticalUrlPreview constructor

const KVerticalUrlPreview(
  1. String url, {
  2. Key? key,
  3. String? cacheKey,
  4. double maxImageHeight = 100,
  5. BoxConstraints boxConstraints = const BoxConstraints(),
  6. TextStyle? titleStyle = const TextStyle(fontSize: 14, color: Colors.white, fontWeight: FontWeight.bold),
  7. EdgeInsets paddingTitle = const EdgeInsets.only(bottom: 8, left: 8, right: 8),
  8. TextStyle? descriptionStyle = const TextStyle(fontSize: 12, color: Colors.grey, fontWeight: FontWeight.w400),
  9. EdgeInsets paddingDescription = const EdgeInsets.only(bottom: 8, left: 8, right: 8),
  10. TextStyle? siteNameStyle = const TextStyle(fontSize: 9, color: Colors.grey, fontWeight: FontWeight.w400),
  11. EdgeInsets paddingSiteName = const EdgeInsets.only(bottom: 8, left: 8, right: 8),
  12. Duration maxAge = const Duration(days: 1),
  13. KPreviewMetaData? meta,
  14. dynamic onBuildDone(
    1. KPreviewMetaData
    )?,
})

Implementation

const KVerticalUrlPreview(
  this.url, {
  Key? key,
  this.cacheKey,
  this.maxImageHeight = 100,
  this.boxConstraints = const BoxConstraints(),
  this.titleStyle = const TextStyle(
    fontSize: 14,
    color: Colors.white,
    fontWeight: FontWeight.bold,
  ),
  this.paddingTitle = const EdgeInsets.only(bottom: 8, left: 8, right: 8),
  this.descriptionStyle = const TextStyle(
    fontSize: 12,
    color: Colors.grey,
    fontWeight: FontWeight.w400,
  ),
  this.paddingDescription =
      const EdgeInsets.only(bottom: 8, left: 8, right: 8),
  this.siteNameStyle = const TextStyle(
    fontSize: 9,
    color: Colors.grey,
    fontWeight: FontWeight.w400,
  ),
  this.paddingSiteName = const EdgeInsets.only(bottom: 8, left: 8, right: 8),
  this.maxAge = const Duration(days: 1),
      this.meta,
      this.onBuildDone,
}) : super(key: key);