Reputation: 765
How the title already suggests, I want to have my own ExpansionPanel, where, contrary to the default one, the elevation is set to zero. I already found this in flutter.dev: https://api.flutter.dev/flutter/material/ExpansionPanelList/ExpansionPanelList.html I have been trying to implement this but haven't succeeded yet, how do I do it?
So Im talking about these Elevation marks of each ElevationPanel:
Upvotes: 0
Views: 156
Reputation: 8597
Maybe I misunderstood you, but it is as simple as just setting the elevation parameter when you build the widget, as such:
As such:
ExpansionPanelList(
elevation: 0,
children: [ ... ],
)
Edit:
After comments, problem has to do with divider color. Do something like this:
ExpansionPanelList(
dividerColor: Colors.transparent,
children: [...]
)
Upvotes: 1