diff --git a/CHANGELOG.md b/CHANGELOG.md index 578dd8e..ba2c44f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Added titles above graphs - Some extra optimization for iOS - Fix starting balance not saving +- Fix overlay disabling tappig on edit/delete buttons on home view # 1.0.0-alpha+5 - Add tests - Add searching through entries to homepage diff --git a/lib/views/home.dart b/lib/views/home.dart index 0b6078b..effb2c2 100644 --- a/lib/views/home.dart +++ b/lib/views/home.dart @@ -577,24 +577,25 @@ class _HomeViewState extends State { ], ), ), - OverlayEntry( - builder: (context) => SizedBox( - width: MediaQuery.of(context).size.width, - height: MediaQuery.of(context).size.height, - child: GestureDetector( - onTap: () { - if (!_searchActive) return; - if (!searchFocus.hasFocus) { - _searchActive = false; - _filter = ""; - setState(() {}); - return; - } - searchFocus.unfocus(); - }, + if (_searchActive) + OverlayEntry( + builder: (context) => SizedBox( + width: MediaQuery.of(context).size.width, + height: MediaQuery.of(context).size.height, + child: GestureDetector( + onTap: () { + if (!_searchActive) return; + if (!searchFocus.hasFocus) { + _searchActive = false; + _filter = ""; + setState(() {}); + return; + } + searchFocus.unfocus(); + }, + ), ), ), - ), ], ), ),