We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17eb8b5 commit e6e11beCopy full SHA for e6e11be
lib/src/components/list_item/notification_list_item.dart
@@ -75,6 +75,9 @@ class ZetaNotificationListItem extends ZetaStatelessWidget {
75
final actionWith = slidableActionsCount * Zeta.of(context).spacing.xl_10;
76
final maxButtonWidth = actionWith / maxScreenWidth;
77
final extend = actionWith / maxScreenWidth;
78
+ if (extend.clamp(0, maxButtonWidth).toDouble() > 1) {
79
+ return 1;
80
+ }
81
return extend.clamp(0, maxButtonWidth).toDouble();
82
}
83
0 commit comments