Can i use Column widgets within an Expanded widget? Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Can i use Column widgets within an Expanded widget? without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I am building a post app and I have a post widget then a comments list widget then a textfield. The comments list is a listview.builder and the post widget is just a container. how can i make them both scroll while the textfield remain on the bottom?

Answer

You could pass post app(Container) and first index Element of comments list inside a column as collective first index inside ListView builder of comment list.

   ListView.builder(
            itemBuilder: (ctx, index) {      
              return (index==0) ? Column(children:[Container,first Element]):
                      Other Element for other index}));
We are here to answer your question about Can i use Column widgets within an Expanded widget? - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji