Quitter
Quitter copied to clipboard
Settings search crashes with type cast error
Description
When typing in the Settings search bar, the app crashes (debug build) or shows a blank screen (release build).
Error
type 'TextField' is not a subtype of type 'Text' in type cast
Steps to reproduce
- Go to Settings tab
- Type any character in the search bar (e.g., "y")
- App crashes or shows blank screen
Screenshots
Debug build (error visible):
The error message is displayed on a red screen.
Release build:
Shows a blank/gray screen with no results.
Location
lib/settings_page.dart:645-646 in _matchesSearch method
The code assumes all widget titles are Text widgets, but some widgets contain TextField instead.
Environment
- Flutter 3.38.3
- Tested on Android
This issue appears to be related to #21, which was closed but the bug still occurs.