diff --git a/lib/widgets/read_receipts_row.dart b/lib/widgets/read_receipts_row.dart index 468e4b7..fb20e3d 100644 --- a/lib/widgets/read_receipts_row.dart +++ b/lib/widgets/read_receipts_row.dart @@ -1,3 +1,5 @@ +import "dart:math"; + import "package:hooks_riverpod/hooks_riverpod.dart"; import "package:material_ui/material_ui.dart"; import "package:material_adaptive_sheets/material_adaptive_sheets.dart"; @@ -44,7 +46,7 @@ class const ReadReceiptsRow( // If they don't all fit, the last spot shows how many more there are final shown = receipts.length <= fits ? receipts.length - : fits - 1; + : max(0, fits - 1); return Align( alignment: .centerRight,