Files
eatvio_app/lib/theme/custom_button_style.dart

23 lines
775 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: MaterialStateProperty.all<Color>(Colors.transparent),
elevation: MaterialStateProperty.all<double>(0),
);
}