23 lines
771 B
Dart
23 lines
771 B
Dart
import 'package:eatvio_app/core/app_export.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
/// A class that offers pre-defined button styles for customizing button appearance.
|
|
class CustomButtonStyles {
|
|
// Outline button style
|
|
static ButtonStyle get outlinePrimaryTL15 => OutlinedButton.styleFrom(
|
|
backgroundColor: appTheme.blueA400,
|
|
side: BorderSide(
|
|
color: theme.colorScheme.primary,
|
|
width: 0,
|
|
),
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(15.h),
|
|
),
|
|
);
|
|
// text button style
|
|
static ButtonStyle get none => ButtonStyle(
|
|
backgroundColor: WidgetStateProperty.all<Color>(Colors.transparent),
|
|
elevation: WidgetStateProperty.all<double>(0),
|
|
);
|
|
}
|