defaultStyle static method

LaunchPreviewStyle defaultStyle(
  1. BuildContext context
)

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),
  );
}