summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLisandro Pérez Meyer <lpmeyer@ics.com>2023-11-23 11:48:25 -0300
committerLisandro Pérez Meyer <lpmeyer@ics.com>2023-11-23 11:48:42 -0300
commit8558b640173de8fbfe37111b29e4fc68dbc80da1 (patch)
tree4e96a45e332b72ca868caddf1db7068c8fc0baf0 /lib
parent193d15a456587bcf3928fb99fe0c1aede82d119d (diff)
Refactor: Dispaly user name
Original from: Dominik Wawrzonek <dwawrzonek@ics.com> Bug-AGL: SPEC-4971 Change-Id: I58c7f3281260fecc04515b8b7680955ab066c9eb Signed-off-by: Lisandro Pérez Meyer <lpmeyer@ics.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/presentation/common_widget/custom_top_bar.dart5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/presentation/common_widget/custom_top_bar.dart b/lib/presentation/common_widget/custom_top_bar.dart
index 900f8be..52e1e58 100644
--- a/lib/presentation/common_widget/custom_top_bar.dart
+++ b/lib/presentation/common_widget/custom_top_bar.dart
@@ -18,7 +18,8 @@ class CustomTopBarState extends ConsumerState<CustomTopBar> {
Widget build(BuildContext context) {
final singnalsConnection =
ref.watch(signalsProvider.select((sinals) => sinals));
- final user = ref.watch(usersProvider.select((user) => user));
+ final userName =
+ ref.watch(usersProvider.select((user) => user.selectedUser.name));
DateFormat dateFormat = DateFormat('hh:mm a');
final currentime = ref.watch(currentTimeProvider);
@@ -44,7 +45,7 @@ class CustomTopBarState extends ConsumerState<CustomTopBar> {
child: SizedBox(width: 16), // 16px space
),
TextSpan(
- text: user.selectedUser.name,
+ text: userName,
style: const TextStyle(fontWeight: FontWeight.bold),
),
],