diff --git a/ltx_flutter/lib/pages/account_page.dart b/ltx_flutter/lib/pages/account_page.dart index ab3c92c..0770f58 100644 --- a/ltx_flutter/lib/pages/account_page.dart +++ b/ltx_flutter/lib/pages/account_page.dart @@ -17,43 +17,46 @@ class _AccountPageState extends State { return Column( children: [ Expanded( - child: ListView( - children: [ - Card( - child: Consumer(builder: (context, account, child) { + child: Padding( + padding: const EdgeInsets.all(20.0), + child: ListView( + children: [ + Consumer(builder: (context, account, child) { return ListTile( leading: Icon(Icons.person), title: Text("Account"), trailing: Text("${account.username}"), ); }), - ), - Card( - child: - Consumer(builder: (context, entries, child) { + Consumer(builder: (context, entries, child) { return ListTile( leading: Icon(Icons.edit_note), title: Text("Entries"), trailing: Text("${entries.total}"), ); }), - ), - Card( - child: Consumer( - builder: (context, categories, child) { + Consumer(builder: (context, categories, child) { return ListTile( leading: Icon(Icons.category), title: Text("Categories"), trailing: Text("${categories.total}"), ); }), - ), - ], + Center( + child: Consumer( + builder: (context, account, child) { + return OutlinedButton.icon( + onPressed: () => account.signOut(), + icon: Icon(Icons.logout), + label: Text("Log out"), + ); + }, + ), + ), + ], + ), ), ), - Expanded( - child: Placeholder(), - ), ], ); }