Last active
March 11, 2019 05:14
-
-
Save this-is-richard/18f854dcff59fbf4c2bf92ef0539b8b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ChatRoom extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Color(0xFFECE5DD), | |
appBar: AppBar( | |
// leading: CircleAvatar(...), <-- remove this avatar | |
title: Row( | |
children: <Widget>[ | |
CircleAvatar( // <-- avatar here instead | |
radius: avatarRadius, | |
child: chatItem.avatar, | |
), | |
SizedBox( | |
width: 8.0, | |
), | |
Text(chatItem.name), | |
], | |
), | |
actions: <Widget>[...] | |
), | |
body: Column(...) | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment