mod: add nav/search debounce option

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-04 21:52:28 +08:00
parent f1433c6e9b
commit 1c0bae600f
5 changed files with 26 additions and 4 deletions

View File

@@ -264,8 +264,10 @@ class _MainAppState extends State<MainApp>
? null
: StreamBuilder(
stream: _mainController.hideTabBar
? _mainController.bottomBarStream.stream
.throttle(const Duration(milliseconds: 500))
? _mainController.navSearchStreamDebounce
? _mainController.bottomBarStream.stream
.throttle(const Duration(milliseconds: 500))
: _mainController.bottomBarStream.stream
: null,
initialData: true,
builder: (context, AsyncSnapshot snapshot) {