add to search
This commit is contained in:
parent
bea2a6df3d
commit
6746c239e3
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue