Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. // Modify the _handleSubmittted method definition as follows.
  2.  
  3. void _handleSubmitted(String text) {
  4. _textController.clear();
  5. ChatMessage message = new ChatMessage(
  6. text: text,
  7. animationController: new AnimationController( //new
  8. duration: new Duration(milliseconds: 700), //new
  9. vsync: this, //new
  10. ), //new
  11. ); //new
  12. setState(() {
  13. _messages.insert(0, message);
  14. });
  15. message.animationController.forward(); //new
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement