Skip to content

Commit 9f46ca5

Browse files
committed
feat: Hide incorrect time banner in wallet-only mode
1 parent f387a96 commit 9f46ca5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/shared/ui/clock_warning_banner.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_bloc/flutter_bloc.dart';
3+
import 'package:web_dex/app_config/app_config.dart';
34
import 'package:web_dex/bloc/system_health/system_health_bloc.dart';
45
import 'package:web_dex/bloc/system_health/system_health_state.dart';
56
import 'package:web_dex/generated/codegen_loader.g.dart';
@@ -13,7 +14,8 @@ class ClockWarningBanner extends StatelessWidget {
1314
return BlocBuilder<SystemHealthBloc, SystemHealthState>(
1415
builder: (context, systemHealthState) {
1516
if (systemHealthState is SystemHealthLoadSuccess &&
16-
!systemHealthState.isValid) {
17+
!systemHealthState.isValid &&
18+
!kIsWalletOnly) {
1719
return _buildWarningBanner();
1820
}
1921
return const SizedBox.shrink();

0 commit comments

Comments
 (0)