From 3df14f7bd2d1385ad46a7581204da98e6c311e13 Mon Sep 17 00:00:00 2001 From: DGoiana Date: Tue, 3 Dec 2024 13:32:19 +0000 Subject: [PATCH] adding tooltip and removing text --- packages/uni_ui/lib/average_bar.dart | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/uni_ui/lib/average_bar.dart b/packages/uni_ui/lib/average_bar.dart index 0a52aa38c..855bb1b60 100644 --- a/packages/uni_ui/lib/average_bar.dart +++ b/packages/uni_ui/lib/average_bar.dart @@ -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) { @@ -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) ])) ]); });