don't show time warning when it's between 8PM and 7AM
This commit is contained in:
parent
c8278656cf
commit
2a38b8ae2b
@ -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,
|
||||
|
Reference in New Issue
Block a user