Skip to content

Commit

Permalink
remove tap to view when there is no handler
Browse files Browse the repository at this point in the history
Signed-off-by: phuoc <[email protected]>
  • Loading branch information
phuocbitmark committed Aug 29, 2024
1 parent 5da8881 commit b9a3da1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/util/inapp_notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ Widget _inAppNotificationToast(BuildContext context, String body, String key,
key: Key(key),
notificationOpenedHandler: notificationOpenedHandler,
addOnTextSpan: [
TextSpan(
text: ' ${'tap_to_view'.tr()}',
style: Theme.of(context).textTheme.ppMori400FFYellow14,
)
if (notificationOpenedHandler != null)
TextSpan(
text: ' ${'tap_to_view'.tr()}',
style: Theme.of(context).textTheme.ppMori400FFYellow14,
)
],
);

Expand Down

0 comments on commit b9a3da1

Please sign in to comment.