WIP
This commit is contained in:
parent
8b8950a992
commit
e08dcbaea5
|
@ -1,7 +1,12 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class EnhancedSearchView extends StatelessWidget {
|
class EnhancedSearchView extends StatelessWidget {
|
||||||
const EnhancedSearchView({super.key});
|
const EnhancedSearchView({
|
||||||
|
super.key,
|
||||||
|
required this.filterBySearchBar,
|
||||||
|
});
|
||||||
|
|
||||||
|
final void Function<T>(T query, BuildContext context) filterBySearchBar;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -13,7 +18,7 @@ class EnhancedSearchView extends StatelessWidget {
|
||||||
onChanged: (value) => EasyDebounce.debounce(
|
onChanged: (value) => EasyDebounce.debounce(
|
||||||
'_model.keyTextFieldTextController',
|
'_model.keyTextFieldTextController',
|
||||||
const Duration(milliseconds: 500),
|
const Duration(milliseconds: 500),
|
||||||
() => filterBySearchBar(Document.fromDesc(value), context),
|
() => filterBySearchBar.call(Document.fromDesc(value), context),
|
||||||
),
|
),
|
||||||
cursorColor: theme.primaryText,
|
cursorColor: theme.primaryText,
|
||||||
showCursor: false,
|
showCursor: false,
|
||||||
|
|
Loading…
Reference in New Issue