16 lines
596 B
Dart
16 lines
596 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
ButtonStyle btnStyle(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(25.0),
|
|
side: BorderSide(
|
|
width: 2,
|
|
color: borderColor,
|
|
))));
|
|
}
|