Skip to content

Commit

Permalink
🎨 Add avatar and Logout button
Browse files Browse the repository at this point in the history
  • Loading branch information
aashutoshrathi committed Dec 28, 2018
1 parent a6f9c04 commit 04dd9e0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/screens/events.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,18 @@ class _EventsPageState extends State<EventsPage> {
// Doing Pop and Push for the smooth closing animation
Navigator.of(context).pushReplacementNamed('/login');
},
child: Text('Logout'),
child: Row(
children: <Widget>[
Padding(
padding: EdgeInsets.symmetric(horizontal: 10.0),
child: CircleAvatar(
backgroundImage:
CachedNetworkImageProvider(curUser.imgURL),
),
),
Icon(Icons.exit_to_app),
],
),
),
),
],
Expand Down

0 comments on commit 04dd9e0

Please sign in to comment.