Code Monkey home page Code Monkey logo

Comments (10)

MAH0460 avatar MAH0460 commented on July 4, 2024

Inside the chatMessageList widget
after we return the snapshot.hasdata
and before child: ListView.builder
add a line
margin: EdgeInsets.only(bottom : 80),

And for going to the latest message
add a line
inside the child: ListView.builder
reverse: true,

Like this
Screenshot (21)

from flutterchatapptutorial.

MAH0460 avatar MAH0460 commented on July 4, 2024

To add time stamp add an additional variable for time in the database and retrive it each time and print below the messages.

from flutterchatapptutorial.

hacker20028 avatar hacker20028 commented on July 4, 2024

To add time stamp add an additional variable for time in the database and retrive it each time and print below the messages.

Can you guide me with that?

from flutterchatapptutorial.

hacker20028 avatar hacker20028 commented on July 4, 2024

Inside the chatMessageList widget
after we return the snapshot.hasdata
and before child: ListView.builder
add a line
margin: EdgeInsets.only(bottom : 80),

And for going to the latest message
add a line
inside the child: ListView.builder
reverse: true,

Like this
Screenshot (21)

Adding 'reverse: true' is taking the lastest message on top instead in bottom as can be seen in the screenshot and getting the screen to bottom
Screenshot_2021-02-14-03-44-57-66_93e0e11aadf2f1b67248ea93df5197d4.jpg

from flutterchatapptutorial.

MAH0460 avatar MAH0460 commented on July 4, 2024

Add Descending: true in orderby in getConversationMessage method
Screenshot (22)

from flutterchatapptutorial.

MAH0460 avatar MAH0460 commented on July 4, 2024

Please close the issue if the problem is solved.

from flutterchatapptutorial.

hacker20028 avatar hacker20028 commented on July 4, 2024

To add time stamp add an additional variable for time in the database and retrive it each time and print below the messages.

Any guide on this?

from flutterchatapptutorial.

MAH0460 avatar MAH0460 commented on July 4, 2024

#8 (comment)
This is the link.

from flutterchatapptutorial.

hacker20028 avatar hacker20028 commented on July 4, 2024

#8 (comment)
This is the link.

ss
I am Getting the above errors

from flutterchatapptutorial.

hacker20028 avatar hacker20028 commented on July 4, 2024

#8 (comment)
This is the link.

ss
I am Getting the above errors

Fixed the _x problem by adding String _x;

from flutterchatapptutorial.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.