mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add search bar
This commit is contained in:
@@ -119,6 +119,7 @@ class _GalleriesPage extends State<GalleriesPage>
|
||||
});
|
||||
_translatedTag = widget.translatedTag;
|
||||
listener.on("user_logined", _onStateChanged);
|
||||
listener.on("meilisearch_enabled", _onStateChanged);
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@@ -202,6 +203,7 @@ class _GalleriesPage extends State<GalleriesPage>
|
||||
icon: const Icon(Icons.sort),
|
||||
itemBuilder: (context) =>
|
||||
[PopupMenuItem(child: sortByGidMenu)]),
|
||||
buildSearchButton(context),
|
||||
buildThemeModeIcon(context),
|
||||
buildMoreVertSettingsButon(context),
|
||||
]),
|
||||
@@ -226,6 +228,7 @@ class _GalleriesPage extends State<GalleriesPage>
|
||||
_pagingController.dispose();
|
||||
_tagCancel?.cancel();
|
||||
listener.removeEventListener("user_logined", _onStateChanged);
|
||||
listener.removeEventListener("meilisearch_enabled", _onStateChanged);
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,6 +83,7 @@ class HomePage extends HookWidget with IsTopWidget {
|
||||
appBar: AppBar(
|
||||
title: Text(AppLocalizations.of(context)!.titleBar),
|
||||
actions: [
|
||||
buildSearchButton(context),
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
final n = themeModeNext(mode.value);
|
||||
|
||||
@@ -192,6 +192,7 @@ class _TaskManagerPage extends State<TaskManagerPage>
|
||||
),
|
||||
title: Text(i18n.taskManager),
|
||||
actions: [
|
||||
buildSearchButton(context),
|
||||
buildThemeModeIcon(context),
|
||||
buildMoreVertSettingsButon(context),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user