Skip to content

Commit e6e11be

Browse files
committed
fix: getSlidableExtend now won't return over 1.0
1 parent 17eb8b5 commit e6e11be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/components/list_item/notification_list_item.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ class ZetaNotificationListItem extends ZetaStatelessWidget {
7575
final actionWith = slidableActionsCount * Zeta.of(context).spacing.xl_10;
7676
final maxButtonWidth = actionWith / maxScreenWidth;
7777
final extend = actionWith / maxScreenWidth;
78+
if (extend.clamp(0, maxButtonWidth).toDouble() > 1) {
79+
return 1;
80+
}
7881
return extend.clamp(0, maxButtonWidth).toDouble();
7982
}
8083

0 commit comments

Comments
 (0)