Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. // Modify the following lines in main.dart.
  2.  
  3. Widget build(BuildContext context) {
  4. return new Scaffold(
  5. appBar: new AppBar(
  6. title: new Text("Friendlychat"),
  7. elevation:
  8. Theme.of(context).platform == TargetPlatform.iOS ? 0.0 : 4.0),
  9. body: new Container( //modified
  10. child: new Column( //modified
  11. children: <Widget>[
  12. new Flexible(
  13. child: new ListView.builder(
  14. padding: new EdgeInsets.all(8.0),
  15. reverse: true,
  16. itemBuilder: (_, int index) => _messages[index],
  17. itemCount: _messages.length,
  18. ),
  19. ),
  20. new Divider(height: 1.0),
  21. new Container(
  22. decoration: new BoxDecoration(color: Theme.of(context).cardColor),
  23. child: _buildTextComposer(),
  24. ),
  25. ],
  26. ),
  27. decoration: Theme.of(context).platform == TargetPlatform.iOS //new
  28. ? new BoxDecoration( //new
  29. border: new Border( //new
  30. top: new BorderSide(color: Colors.grey[200]), //new
  31. ), //new
  32. ) //new
  33. : null), //modified
  34. );
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement