Closed marioki closed 5 months ago
@marioki same updates as This PR the new updates will be available in the next published version
@koukibadr Have you considered allowing users to use actions + onTap? There's a use case where tapping the notification, for example, navigates to a particular route, while using an action performs a quick response. This PR allows for both to be used.
The latest published version contains onTap
and closeOnTap
attributes where:
onTap
a callback invoked when the user press the widgetcloseOnTap
boolean indicate whether the notification get closed on pressing it or not
This PR adds functionality to set an onTap Function to be called when the user taps anywhere on the notification Material Widget. New Parameters Added to
ElegantNotification
widget:onTap
Optional Parameter to set a Function to call when the notification is tapped.dismissOnTap
a boolean Flag to define wheater the notification should be dismissed when tapped (set to true by default).Other Considerations:
onTap
, anaction
and acloseButton
each with their corresponding Function call.