ListTile covers button animation

70 views
Skip to first unread message

Peter Chovan

unread,
Mar 29, 2020, 1:14:08 PM3/29/20
to Flutter Development (flutter-dev)
Just noticed that ListTile cover button animation when wrapped inside a container with background color set to anything but transparent. Wrapping ListTile in a container with set color is the only way I know to change background color of ListTile. Is there any other way to change background color of the ListTile without loosing button animation?

Souvik Dutta

unread,
Mar 29, 2020, 8:59:58 PM3/29/20
to Peter Chovan, Flutter Development (flutter-dev)
Well this should not happen but if the problem exists then u could use stack.

On Sun, 29 Mar, 2020, 10:44 pm Peter Chovan, <millj...@gmail.com> wrote:
Just noticed that ListTile cover button animation when wrapped inside a container with background color set to anything but transparent. Wrapping ListTile in a container with set color is the only way I know to change background color of ListTile. Is there any other way to change background color of the ListTile without loosing button animation?

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/fb361a75-4f03-4c29-9c77-919508b14a14%40googlegroups.com.

Hassan Hammad

unread,
Mar 29, 2020, 9:36:32 PM3/29/20
to Flutter Development (flutter-dev)
Use Material widget Instead of a container.

According to stack overflow this is as expected, something to do with Listtile needing a new material pallet to build to show its button splash.

Just wrap the listtile in a material widget instead.

Reply all
Reply to author
Forward
0 new messages