Skip to content

Commit 411fb93

Browse files
Thuis titel beter
1 parent b1db5b4 commit 411fb93

File tree

3 files changed

+35
-10
lines changed

3 files changed

+35
-10
lines changed

lib/src/ui/tabs/Agenda.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ class _Agenda extends State<Agenda> with AfterLayoutMixin<Agenda>, TickerProvide
540540
padding: EdgeInsets.all(3.0),
541541
child: Icon(
542542
afwezig.first.geoorloofd ? Icons.check : Icons.error_outlined,
543+
color: Colors.white,
543544
size: 17,
544545
),
545546
),

lib/src/ui/tabs/Studiewijzer.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ class _StudiewijzerPagina extends State<StudiewijzerPagina> {
115115
selected.value = null;
116116
},
117117
)
118+
// : AnimatedIcon(icon: AnimatedIcons.),
118119
: null,
119120
title: selected.value != null
120121
? Text(selected.value.naam)

lib/src/ui/tabs/Thuis.dart

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,39 @@ class _Thuis extends State<Thuis> {
5858
floating: false,
5959
pinned: true,
6060
flexibleSpace: FlexibleSpaceBar(
61-
centerTitle: true,
62-
title: Text(
63-
"Vandaag",
64-
style: TextStyle(
65-
fontSize: 16.0,
66-
),
67-
),
68-
background: Image.network(
69-
"https://images.pexels.com/photos/396547/pexels-photo-396547.jpeg?auto=compress&cs=tinysrgb&h=350",
70-
fit: BoxFit.cover,
61+
// title: Text(
62+
// account.fullName,
63+
// style: TextStyle(
64+
// fontSize: 16.0,
65+
// ),
66+
// ),
67+
background: Column(
68+
mainAxisAlignment: MainAxisAlignment.end,
69+
crossAxisAlignment: CrossAxisAlignment.center,
70+
children: [
71+
Container(
72+
margin: EdgeInsets.only(bottom: 15.0),
73+
child: CircleAvatar(
74+
backgroundImage: Image.memory(
75+
base64Decode(account.profilePicture),
76+
).image,
77+
radius: 35.0,
78+
),
79+
),
80+
Container(
81+
margin: EdgeInsets.only(bottom: 7.5),
82+
child: Text(
83+
account.fullName,
84+
style: TextStyle(
85+
fontSize: 20.0,
86+
),
87+
),
88+
),
89+
Container(
90+
margin: EdgeInsets.only(bottom: 20),
91+
child: Text("${account.klasCode} | ${account.username}"),
92+
),
93+
],
7194
),
7295
),
7396
),

0 commit comments

Comments
 (0)