LokioButton.primary constructor
LokioButton.primary({
- required VoidCallback? onPressed,
- ButtonSize size = ButtonSize.medium,
- Widget? child,
- Widget? leadingIcon,
- Widget? trailingIcon,
- bool isLoading = false,
- bool isExpanded = false,
- LokioTheme? theme,
Create a primary button with default styling
Implementation
factory LokioButton.primary({
required VoidCallback? onPressed,
ButtonSize size = ButtonSize.medium,
Widget? child,
Widget? leadingIcon,
Widget? trailingIcon,
bool isLoading = false,
bool isExpanded = false,
LokioTheme? theme,
}) {
return LokioButton(
onPressed: onPressed,
variant: ButtonVariant.primary,
size: size,
child: child,
leadingIcon: leadingIcon,
trailingIcon: trailingIcon,
isLoading: isLoading,
isExpanded: isExpanded,
theme: theme,
);
}