From 828254ceee3d8cb6901856edc719857fd8c39995 Mon Sep 17 00:00:00 2001 From: Hamlet Jiang Su <30667958+hjiangsu@users.noreply.github.com> Date: Sun, 28 Jan 2024 13:02:15 -0800 Subject: [PATCH] Fix issue with Settings search not triggering (#1088) --- lib/settings/pages/settings_page.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/settings/pages/settings_page.dart b/lib/settings/pages/settings_page.dart index 8d1e6d374..771df0dd2 100644 --- a/lib/settings/pages/settings_page.dart +++ b/lib/settings/pages/settings_page.dart @@ -20,10 +20,15 @@ class SettingTopic { SettingTopic({required this.title, required this.icon, required this.path}); } -class SettingsPage extends StatelessWidget { - final SearchController _searchController = SearchController(); +class SettingsPage extends StatefulWidget { + const SettingsPage({super.key}); - SettingsPage({super.key}); + @override + State createState() => _SettingsPageState(); +} + +class _SettingsPageState extends State { + final SearchController _searchController = SearchController(); @override Widget build(BuildContext context) {