Skip to content

Commit

Permalink
fix: expose the duration for the notification.show
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Dec 10, 2024
1 parent 865362c commit 5df2d3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/components/notification/notification.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class ImpaktfullUiNotification extends StatelessWidget
static show({
required String title,
String? subtitle,
Duration? showDuration,
bool cancelActive = false,
bool cancelAll = true,
ImpaktfullUiNotificationType type = ImpaktfullUiNotificationType.success,
Expand All @@ -93,6 +94,7 @@ class ImpaktfullUiNotification extends StatelessWidget
title: title,
subtitle: subtitle,
type: type._snackyType,
showDuration: showDuration,
canBeClosed: true,
),
);
Expand Down

0 comments on commit 5df2d3e

Please sign in to comment.