Quitter icon indicating copy to clipboard operation
Quitter copied to clipboard

Settings search crashes with type cast error

Open Gonbei774 opened this issue 4 weeks ago • 1 comments

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

  1. Go to Settings tab
  2. Type any character in the search bar (e.g., "y")
  3. 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

Gonbei774 avatar Dec 02 '25 15:12 Gonbei774

This issue appears to be related to #21, which was closed but the bug still occurs.

Gonbei774 avatar Dec 02 '25 16:12 Gonbei774