Flutter - Is there a way to disable the expansion of ExpansionTile?

Viewed 2282

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?

1 Answers

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

Related