Skip to content

Commit 2402c4f

Browse files
committed
🔧 Change time in utility.
1.:wrench: Change yesterday to 1d in utility. 2.Remove bounce physics from Notification list page.
1 parent 81d243f commit 2402c4f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/helper/utility.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ String getChatTime(String date) {
5454
var dur = DateTime.now().toLocal().difference(dt);
5555
if (dur.inDays > 0) {
5656
msg = '${dur.inDays} d';
57-
return dur.inDays == 1 ? 'yesterday' : DateFormat("dd MMM").format(dt);
57+
return dur.inDays == 1 ? '1d' : DateFormat("dd MMM").format(dt);
5858
} else if (dur.inHours > 0) {
5959
msg = '${dur.inHours} h';
6060
} else if (dur.inMinutes > 0) {

lib/page/notification/notificationPage.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ class NotificationPageBody extends StatelessWidget {
103103
);
104104
}
105105
return ListView.builder(
106-
physics: BouncingScrollPhysics(),
107106
addAutomaticKeepAlives: true,
108107
itemBuilder: (context, index) => _notificationRow(context, list[index]),
109108
itemCount: list.length,

0 commit comments

Comments
 (0)