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( subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
if (notification.message.isNotEmpty) ...[ if (notification.message.isNotEmpty)
Text( Padding(
notification.message, padding: const EdgeInsets.only(bottom: 5),
overflow: TextOverflow.ellipsis, child: Text(
), notification.message,
const SizedBox( overflow: TextOverflow.ellipsis,
height: 5, ),
), ),
],
RelativeTime( RelativeTime(
date: DateTime.parse(notification.datetime), date: DateTime.parse(notification.datetime),
), ),

Loading…
Cancel
Save