Skip to content

Commit

Permalink
renamed status_bar
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmer committed Nov 2, 2023
1 parent 76a9c58 commit 9882c4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/views/main_view/main_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '../../model/states/app_state.dart';
import '../../utils/logger.dart';
import '../../utils/riverpod_providers.dart';
import '../../widgets/app_wrapper.dart';
import '../../widgets/connectivity_status_bar.dart';
import '../../widgets/status_bar.dart';
import 'main_view_widgets/main_view_navigation_bar.dart';
import 'main_view_widgets/main_view_tokens_list.dart';

Expand Down Expand Up @@ -56,7 +56,7 @@ class _MainViewState extends ConsumerState<MainView> with LifecycleMixin {
),
),
body: ConnectivityListener(
child: ConnectivityStatusBar(
child: StatusBar(
child: Stack(
clipBehavior: Clip.antiAliasWithSaveLayer,
children: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import 'package:privacyidea_authenticator/utils/text_size.dart';

import '../utils/riverpod_providers.dart';

class ConnectivityStatusBar extends ConsumerStatefulWidget {
class StatusBar extends ConsumerStatefulWidget {
final Widget child;
const ConnectivityStatusBar({super.key, required this.child});
const StatusBar({super.key, required this.child});

@override
ConsumerState<ConnectivityStatusBar> createState() => _ConnectivityStatusBarState();
ConsumerState<StatusBar> createState() => _ConnectivityStatusBarState();
}

class _ConnectivityStatusBarState extends ConsumerState<ConnectivityStatusBar> {
class _ConnectivityStatusBarState extends ConsumerState<StatusBar> {
(String, String?)? previousStatusMessage;
(String, String?)? currentStatusMessage;
Queue<(String, String?)> statusbarQueue = Queue();
Expand All @@ -27,10 +27,7 @@ class _ConnectivityStatusBarState extends ConsumerState<ConnectivityStatusBar> {
@override
Widget build(BuildContext context) {
final newStatusMessage = ref.watch(statusMessageProvider);
// if (newStatusMessage != previousStatusMessage && newStatusMessage != currentStatusMessage) {
// previousStatusMessage = newStatusMessage;
_addToQueueIfNotInQueue(newStatusMessage);
// }
return widget.child;
}

Expand Down

0 comments on commit 9882c4a

Please sign in to comment.