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