Skip to content

Instantly share code, notes, and snippets.

@this-is-richard
Last active March 11, 2019 05:14
Show Gist options
  • Save this-is-richard/18f854dcff59fbf4c2bf92ef0539b8b1 to your computer and use it in GitHub Desktop.
Save this-is-richard/18f854dcff59fbf4c2bf92ef0539b8b1 to your computer and use it in GitHub Desktop.
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