diff options
author | Lisandro Pérez Meyer <lpmeyer@ics.com> | 2023-11-16 22:44:34 -0300 |
---|---|---|
committer | Lisandro Perez Meyer <lpmeyer@ics.com> | 2023-11-17 01:48:26 +0000 |
commit | 4d77bab5a0f698943d1abf74482eecef7cc95f08 (patch) | |
tree | 49e0a590b5903cc7553b1a4fc3cb2fbcd13cebf4 /lib/presentation/common_widget | |
parent | 6a00ac1f8613048b5c1f7ecdbd1adcbbcfdca5ed (diff) |
Bug fixes. Fixed Fan mode selection off state bug.
Fixes ICS' internal AGL-48,49,50.
Original from Sabin Sajeevan <ssajeevan@ics.com>
Bug-AGL: SPEC-4971
Change-Id: I66c875551a69a1b53eee2d6e1d3fa725b20ff41b
Signed-off-by: Lisandro Pérez Meyer <lpmeyer@ics.com>
Diffstat (limited to 'lib/presentation/common_widget')
-rw-r--r-- | lib/presentation/common_widget/custom_top_bar.dart | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/presentation/common_widget/custom_top_bar.dart b/lib/presentation/common_widget/custom_top_bar.dart index c268f53..900f8be 100644 --- a/lib/presentation/common_widget/custom_top_bar.dart +++ b/lib/presentation/common_widget/custom_top_bar.dart @@ -19,12 +19,8 @@ class CustomTopBarState extends ConsumerState<CustomTopBar> { final singnalsConnection = ref.watch(signalsProvider.select((sinals) => sinals)); final user = ref.watch(usersProvider.select((user) => user)); - final time2 = - ref.watch(dateTimeStateProvider.select((dateTime) => dateTime)); - - DateFormat dateFormat = DateFormat('HH:mm'); - //var time = dateFormat.format(DateTime.now()); - var time = time2.time; + DateFormat dateFormat = DateFormat('hh:mm a'); + final currentime = ref.watch(currentTimeProvider); return AppBar( elevation: 0, @@ -41,7 +37,7 @@ class CustomTopBarState extends ConsumerState<CustomTopBar> { children: [ RichText( text: TextSpan( - text: '$time ', + text: dateFormat.format(currentime), style: const TextStyle(color: Colors.white, fontSize: 26), children: <InlineSpan>[ const WidgetSpan( |