Refactor: Dispaly user name 67/29467/1
authorLisandro Pérez Meyer <lpmeyer@ics.com>
Thu, 23 Nov 2023 14:48:25 +0000 (11:48 -0300)
committerLisandro Pérez Meyer <lpmeyer@ics.com>
Thu, 23 Nov 2023 14:48:42 +0000 (11:48 -0300)
Original from: Dominik Wawrzonek <dwawrzonek@ics.com>
Bug-AGL: SPEC-4971

Change-Id: I58c7f3281260fecc04515b8b7680955ab066c9eb
Signed-off-by: Lisandro Pérez Meyer <lpmeyer@ics.com>
lib/presentation/common_widget/custom_top_bar.dart
macos/Podfile.lock

index 900f8be..52e1e58 100644 (file)
@@ -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),
                         ),
                       ],
index f3a038b..09ccbe9 100644 (file)
@@ -39,4 +39,4 @@ SPEC CHECKSUMS:
 
 PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367
 
-COCOAPODS: 1.11.3
+COCOAPODS: 1.12.1