fix: disable overlay if search is not active
This commit is contained in:
parent
5520655e32
commit
ae07720854
2 changed files with 18 additions and 16 deletions
|
@ -10,6 +10,7 @@
|
||||||
- Added titles above graphs
|
- Added titles above graphs
|
||||||
- Some extra optimization for iOS
|
- Some extra optimization for iOS
|
||||||
- Fix starting balance not saving
|
- Fix starting balance not saving
|
||||||
|
- Fix overlay disabling tappig on edit/delete buttons on home view
|
||||||
# 1.0.0-alpha+5
|
# 1.0.0-alpha+5
|
||||||
- Add tests
|
- Add tests
|
||||||
- Add searching through entries to homepage
|
- Add searching through entries to homepage
|
||||||
|
|
|
@ -577,24 +577,25 @@ class _HomeViewState extends State<HomeView> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
OverlayEntry(
|
if (_searchActive)
|
||||||
builder: (context) => SizedBox(
|
OverlayEntry(
|
||||||
width: MediaQuery.of(context).size.width,
|
builder: (context) => SizedBox(
|
||||||
height: MediaQuery.of(context).size.height,
|
width: MediaQuery.of(context).size.width,
|
||||||
child: GestureDetector(
|
height: MediaQuery.of(context).size.height,
|
||||||
onTap: () {
|
child: GestureDetector(
|
||||||
if (!_searchActive) return;
|
onTap: () {
|
||||||
if (!searchFocus.hasFocus) {
|
if (!_searchActive) return;
|
||||||
_searchActive = false;
|
if (!searchFocus.hasFocus) {
|
||||||
_filter = "";
|
_searchActive = false;
|
||||||
setState(() {});
|
_filter = "";
|
||||||
return;
|
setState(() {});
|
||||||
}
|
return;
|
||||||
searchFocus.unfocus();
|
}
|
||||||
},
|
searchFocus.unfocus();
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue