add to search
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class MihSearchBar extends StatefulWidget {
|
class MihSearchBar extends StatefulWidget {
|
||||||
@@ -124,6 +125,7 @@ class _MihSearchBarState extends State<MihSearchBar> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
controller: widget.controller, // Assign the controller
|
controller: widget.controller, // Assign the controller
|
||||||
focusNode: widget.searchFocusNode,
|
focusNode: widget.searchFocusNode,
|
||||||
|
spellCheckConfiguration: kIsWeb ? null : SpellCheckConfiguration(),
|
||||||
onSubmitted: (value) {
|
onSubmitted: (value) {
|
||||||
widget.onPrefixIconTap
|
widget.onPrefixIconTap
|
||||||
?.call(); // Call the prefix icon tap handler
|
?.call(); // Call the prefix icon tap handler
|
||||||
|
|||||||
Reference in New Issue
Block a user