gdelataillade / alarm

A Flutter plugin to easily manage alarms on iOS and Android
https://pub.dev/packages/alarm
MIT License
132 stars 86 forks source link

Error: The argument type 'bool' can't be assigned to the parameter type 'String?'. #280

Closed louwers closed 2 weeks ago

louwers commented 2 weeks ago

stopButton of NotificationSettings seems to take a String? not a boolean (like in the README).

gdelataillade commented 2 weeks ago

Hi @louwers

Thanks for reporting the error. You're right, stopButton should take a String?. It used to take a boolean but I thought it was more relevant to take a String?. This is what the documentation says:

  /// The text to display on the stop button of the notification.
  ///
  /// Won't work on iOS if app was killed.
  /// If null, button will not be shown. Null by default.
  final String? stopButton;

I'll fix the README, thanks.