So I was trying to build a user id page for my flutter app where you tap on a container and the containers height is increased and a different set of data is shown. On expanded I also wanted to add a scrollable tabview and that’s second part of the problem.
the expected ui looks like thishttps://i.stack.imgur.com/62sro.gif.
I have tried Expanded and expansion tile, Can’t quite achieve the output
Is there any other method to achieve this?
2
Answers
Welcome @Anand Pillai,
First add this line to your pubspec.yaml
expandable: ^5.0.1
try this code
Simple logic is to animate the container when tapped and change the widget in it. On tap it calls setsate that sets the height, width, margin and child of the container.