9/3/1
This commit is contained in:
@@ -6,18 +6,19 @@ import '../../constant/colors.dart';
|
||||
class MyElevatedButton extends StatelessWidget {
|
||||
final String title;
|
||||
final VoidCallback onPressed;
|
||||
|
||||
final Color kolor;
|
||||
const MyElevatedButton({
|
||||
Key? key,
|
||||
required this.title,
|
||||
required this.onPressed,
|
||||
this.kolor = AppColor.primaryColor,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ElevatedButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor: MaterialStateProperty.all(AppColor.primaryColor),
|
||||
backgroundColor: MaterialStateProperty.all(kolor),
|
||||
),
|
||||
onPressed: onPressed,
|
||||
child: Text(
|
||||
|
||||
Reference in New Issue
Block a user