Skip to content

Commit

Permalink
adding tooltip and removing text
Browse files Browse the repository at this point in the history
  • Loading branch information
DGoiana authored and Process-ing committed Jan 18, 2025
1 parent 3242c37 commit 3df14f7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/uni_ui/lib/average_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ class AverageBar extends StatelessWidget {
{required this.average,
required this.completedCredits,
required this.totalCredits,
required this.statusText,
super.key});

final double average;
final int completedCredits;
final int totalCredits;
final String statusText;

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -46,16 +48,17 @@ class AverageBar extends StatelessWidget {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text('ECTS'),
Tooltip(
message: "European Credit System",
child: Text("ECTS"),
),
Text('$completedCredits/$totalCredits'),
]),
LinearProgressIndicator(
minHeight: 8,
value: completedCredits / totalCredits,
borderRadius: BorderRadius.all(Radius.circular(5))),
Text(completedCredits == totalCredits
? "Concluído"
: "A frequentar")
Text(statusText)
]))
]);
});
Expand Down

0 comments on commit 3df14f7

Please sign in to comment.