I'm trying to use an expansion tile and make the expansion capability disabled in few cases... Is it possible to do so? I mean does any of the existing "expansion" widgets cover this thing or not? If not, then is any package available that can help me do this? How should I approach this thing?
-
Do you try to view some tree?Ruslan Strelba– Ruslan Strelba2021-01-07 17:21:52 +00:00Commented Jan 7, 2021 at 17:21
-
Sorry @rstrelba i don't know what you mean by thatdev404– dev4042021-01-08 10:10:33 +00:00Commented Jan 8, 2021 at 10:10
-
I mean if you want to build forexample tree in your interface, you can use ExpansionTile for branches and ListTile for leavesRuslan Strelba– Ruslan Strelba2021-01-08 11:39:03 +00:00Commented Jan 8, 2021 at 11:39
Add a comment
|
1 Answer
You can use IgnorePointer, which prevent children widget from pointer events, and set ignoring to true.
IgnorePointer(
ignoring: true,
child: ExpansionTile()
)
For more information about IgnorePointer, check the docs
3 Comments
dev404
Thanks a lot... the ignore pointer definitely is the solution
Dani
that's not a solution. I need to detect something when I click on the ExpansionTitle. If it's true I active something but not the ExpansionTitle. Having this IgnorePointer it doesn't work