don't show time warning when it's between 8PM and 7AM

This commit is contained in:
bytedream 2024-03-27 20:07:17 +01:00
parent c8278656cf
commit 2a38b8ae2b

View File

@ -114,7 +114,9 @@ class _HomePageState extends State<HomeView> {
body: Column(
children: [
WatchState<TimeWarningState>((context, state) {
if(!state.show) return const SizedBox.shrink();
if(!state.show || DateTime.now().hour >= 20 || DateTime.now().hour < 7) {
return const SizedBox.shrink();
}
return const SizedBox(
height: 100,