ListTile Padding Issue

649 views
Skip to first unread message

Djordje Komazec

unread,
Dec 3, 2018, 4:03:12 PM12/3/18
to Flutter Dev
Hey guys, I would appreciate any help.
Rows in which subtitle breaks have smaller height than the ones that don't. Preferable I'd like them to be same height.
Used this code to set listTile padding, since this horizontal padding value is used by default anyway. I just needed vertical.
contentPadding: const EdgeInsets.symmetric(
horizontal: 16.0,
vertical: 12.0,
),

Tried setting contentPadding to zero, not touching contentPadding, tried isThreeLine, tried dense...
Not broken subtitle always has bigger height.
Setting container and height, just doesn't make sense, who knows how much text there will be in subtitle in future. 


WhatsApp Image 2018-12-03 at 21.39.14.jpeg

Thanks!

WhatsApp Image 2018-12-03 at 21.39.14.jpeg

EthicCoders Apps

unread,
Dec 5, 2018, 1:57:34 PM12/5/18
to komaz...@gmail.com, flutt...@googlegroups.com
Did you tried using itemExtent property of list view....  (I assume the notification items are children in a ListView... screenshots below). On setting property itemExtent = 50,  I got same height (300 px ) for both one or two line sublist... 

Screenshot_20181206-001519.png

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages