Skip to content

Commit

Permalink
hello
Browse files Browse the repository at this point in the history
  • Loading branch information
angrezichatterbox committed Apr 16, 2024
1 parent 5494acc commit 8220721
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions lib/pages/homepage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,29 +188,14 @@ class HomePageState extends State<HomePage> {
padding: const EdgeInsets.all(8.0),
child:
Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
Flexible(
Expanded(
child: ListView.builder(
itemCount: stats.length,
itemBuilder: (context, index) {
final subject = stats[index];
return Column(
children: [
ListTile(
leading: Icon(
getRandomSubjectIcon(),
size: 62,
color: Colors.white,
),
title: Text(
subject["name"].toString().toTitleCase(),
style: const TextStyle(color: Colors.white),
),
subtitle: Text(
"Attendance: ${subject["percentage"]}%",
style: const TextStyle(
color: Colors.white, fontWeight: FontWeight.bold),
),
trailing: Expanded(
Expanded(
child: CircleAvatar(
radius: 30,
backgroundColor: const Color.fromARGB(255, 211, 255, 153),
Expand All @@ -222,7 +207,7 @@ class HomePageState extends State<HomePage> {
fontWeight: FontWeight.bold),
),
),
)),
),
],
);
},
Expand Down

0 comments on commit 8220721

Please sign in to comment.