KVerticalUrlPreview constructor
const
KVerticalUrlPreview(
- String url, {
- Key? key,
- String? cacheKey,
- double maxImageHeight = 100,
- BoxConstraints boxConstraints = const BoxConstraints(),
- TextStyle? titleStyle = const TextStyle(fontSize: 14, color: Colors.white, fontWeight: FontWeight.bold),
- EdgeInsets paddingTitle = const EdgeInsets.only(bottom: 8, left: 8, right: 8),
- TextStyle? descriptionStyle = const TextStyle(fontSize: 12, color: Colors.grey, fontWeight: FontWeight.w400),
- EdgeInsets paddingDescription = const EdgeInsets.only(bottom: 8, left: 8, right: 8),
- TextStyle? siteNameStyle = const TextStyle(fontSize: 9, color: Colors.grey, fontWeight: FontWeight.w400),
- EdgeInsets paddingSiteName = const EdgeInsets.only(bottom: 8, left: 8, right: 8),
- Duration maxAge = const Duration(days: 1),
- KPreviewMetaData? meta,
- dynamic onBuildDone()?,
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);