mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: add nav/search debounce option
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -154,8 +154,10 @@ class _HomePageState extends State<HomePage>
|
||||
Widget get customAppBar {
|
||||
return StreamBuilder(
|
||||
stream: _homeController.hideSearchBar
|
||||
? _homeController.searchBarStream.stream
|
||||
.throttle(const Duration(milliseconds: 500))
|
||||
? _mainController.navSearchStreamDebounce
|
||||
? _homeController.searchBarStream.stream
|
||||
.throttle(const Duration(milliseconds: 500))
|
||||
: _homeController.searchBarStream.stream
|
||||
: null,
|
||||
initialData: true,
|
||||
builder: (BuildContext context, AsyncSnapshot snapshot) {
|
||||
|
||||
Reference in New Issue
Block a user