Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. // Modify the code in the ChatScreenState class definition as follows.
  2.  
  3. Widget build(BuildContext context) {
  4. return new Scaffold(
  5. appBar: new AppBar(title: new Text("Friendlychat")),
  6. body: new Column( //modified
  7. children: <Widget>[ //new
  8. new Flexible( //new
  9. child: new ListView.builder( //new
  10. padding: new EdgeInsets.all(8.0), //new
  11. reverse: true, //new
  12. itemBuilder: (_, int index) => _messages[index], //new
  13. itemCount: _messages.length, //new
  14. ), //new
  15. ), //new
  16. new Divider(height: 1.0), //new
  17. new Container( //new
  18. decoration: new BoxDecoration(
  19. color: Theme.of(context).cardColor), //new
  20. child: _buildTextComposer(), //modified
  21. ), //new
  22. ], //new
  23. ), //new
  24. );
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement