defaultStyle static method
The default style for LaunchPreviewCard using the current theme.
Implementation
static LaunchPreviewStyle defaultStyle(BuildContext context) {
return LaunchPreviewStyle(
backgroundColor: Theme.of(context).cardColor,
titleTextStyle:
Theme.of(
context,
).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.bold) ??
const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
descriptionTextStyle:
Theme.of(context).textTheme.bodySmall ??
const TextStyle(fontSize: 14, color: Colors.grey),
);
}