2022-11-28 08:03:13 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2022-12-05 08:06:45 +00:00
|
|
|
ButtonStyle mainBtnStyle(Color background, Color borderColor, Color overlay) {
|
2022-11-28 08:03:13 +00:00
|
|
|
return ButtonStyle(
|
|
|
|
elevation: MaterialStateProperty.all<double>(0),
|
|
|
|
backgroundColor: MaterialStateProperty.all<Color>(background),
|
|
|
|
overlayColor: MaterialStateProperty.all<Color>(overlay),
|
|
|
|
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
|
|
|
|
RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(25.0),
|
|
|
|
side: BorderSide(
|
|
|
|
width: 2,
|
|
|
|
color: borderColor,
|
|
|
|
))));
|
|
|
|
}
|
2022-12-05 08:06:45 +00:00
|
|
|
|
|
|
|
ButtonStyle secondaryBtnStyle(
|
|
|
|
Color background, Color borderColor, Color overlay) {
|
|
|
|
return ButtonStyle(
|
|
|
|
elevation: MaterialStateProperty.all<double>(0),
|
|
|
|
backgroundColor: MaterialStateProperty.all<Color>(background),
|
|
|
|
overlayColor: MaterialStateProperty.all<Color>(overlay),
|
|
|
|
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
|
|
|
|
RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(8.0),
|
|
|
|
side: BorderSide(
|
|
|
|
width: 2,
|
|
|
|
color: borderColor,
|
|
|
|
))));
|
|
|
|
}
|