diff --git a/lib/date_picker.dart b/lib/date_picker.dart index b66312d..5853790 100644 --- a/lib/date_picker.dart +++ b/lib/date_picker.dart @@ -120,6 +120,7 @@ class DatePicker { DateTimePickerMode pickerMode = DateTimePickerMode.date, Color? backgroundColor, Color? textColor, + Color? textButtonColor, TextStyle? itemTextStyle, String? titleText, String? confirmText, @@ -130,14 +131,14 @@ class DatePicker { DateTime? _selectedDate = initialDate ?? DateTime.now().startOfDay(); final List listButtonActions = [ TextButton( - style: TextButton.styleFrom(foregroundColor: textColor), + style: TextButton.styleFrom(foregroundColor: textButtonColor), child: Text(confirmText ?? "OK"), onPressed: () { Navigator.pop(context, _selectedDate); }, ), TextButton( - style: TextButton.styleFrom(foregroundColor: textColor), + style: TextButton.styleFrom(foregroundColor: textButtonColor), child: Text(cancelText ?? "Cancel"), onPressed: () { Navigator.pop(context);