Browse Source

perf(neon_notifications): do not use the spread operator for building lists

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/1094/head
Nikolas Rimikis 1 year ago
parent
commit
22ac4ed496
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 15
      packages/neon/neon_notifications/lib/pages/main.dart

15
packages/neon/neon_notifications/lib/pages/main.dart

@ -61,15 +61,14 @@ class _NotificationsMainPageState extends State<NotificationsMainPage> {
subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (notification.message.isNotEmpty) ...[
Text(
notification.message,
overflow: TextOverflow.ellipsis,
),
const SizedBox(
height: 5,
if (notification.message.isNotEmpty)
Padding(
padding: const EdgeInsets.only(bottom: 5),
child: Text(
notification.message,
overflow: TextOverflow.ellipsis,
),
),
],
RelativeTime(
date: DateTime.parse(notification.datetime),
),

Loading…
Cancel
Save