LaunchStyle.defaultActionButton constructor

LaunchStyle.defaultActionButton(
  1. BuildContext context
)

Factory constant for default styling of an ActionButton.

Uses primary theme colors for background and white for text/icons.

Implementation

factory LaunchStyle.defaultActionButton(BuildContext context) {
  final theme = Theme.of(context);
  return LaunchStyle(
    backgroundColor: theme.primaryColor,
    textColor: Colors.white,
    iconColor: Colors.white,
    borderRadius: 8.0,
    padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
    fontSize: 16,
    fontWeight: FontWeight.bold,
    height: 48,
  );
}