Format
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2020-01-01 22:09:56 +01:00
parent 3d8a0b5ccd
commit 31361ae1f4
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 8 additions and 4 deletions

View File

@ -14,7 +14,9 @@ class User {
String avatarUrl() {
return "https://secure.gravatar.com/avatar/" +
md5.convert((this.email ?? "").trim().toLowerCase().codeUnits).toString();
md5
.convert((this.email ?? "").trim().toLowerCase().codeUnits)
.toString();
}
}

View File

@ -89,8 +89,10 @@ class HomePageState extends State<HomePage> with AfterLayoutMixin<HomePage> {
drawer: new Drawer(
child: new Column(children: <Widget>[
new UserAccountsDrawerHeader(
accountEmail: currentUser?.email == null ? null : Text(currentUser.email),
accountName: currentUser?.username == null ? null : Text(currentUser.username),
accountEmail:
currentUser?.email == null ? null : Text(currentUser.email),
accountName:
currentUser?.username == null ? null : Text(currentUser.username),
onDetailsPressed: () {
setState(() {
_showUserDetails = !_showUserDetails;
@ -100,7 +102,7 @@ class HomePageState extends State<HomePage> with AfterLayoutMixin<HomePage> {
? null
: CircleAvatar(
backgroundImage: NetworkImage(currentUser.avatarUrl()),
),
),
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/graphics/hypnotize.png"),