add to search

This commit is contained in:
2025-06-13 11:42:11 +02:00
parent bea2a6df3d
commit 6746c239e3

View File

@@ -1,3 +1,4 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
class MihSearchBar extends StatefulWidget {
@@ -124,6 +125,7 @@ class _MihSearchBarState extends State<MihSearchBar> {
child: TextField(
controller: widget.controller, // Assign the controller
focusNode: widget.searchFocusNode,
spellCheckConfiguration: kIsWeb ? null : SpellCheckConfiguration(),
onSubmitted: (value) {
widget.onPrefixIconTap
?.call(); // Call the prefix icon tap handler