2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00
This commit is contained in:
Oliver
2021-07-26 17:28:16 +10:00
parent d07b704014
commit 2bdadc2140
6 changed files with 15 additions and 47 deletions

View File

@ -21,19 +21,14 @@ class PaginatedSearchWidget extends StatelessWidget {
leading: GestureDetector(
child: FaIcon(controller.text.isEmpty ? FontAwesomeIcons.search : FontAwesomeIcons.backspace),
onTap: () {
if (onChanged != null) {
controller.clear();
onChanged();
}
controller.clear();
onChanged();
},
),
title: TextFormField(
controller: controller,
onChanged: (value) {
if (onChanged != null) {
onChanged();
}
onChanged();
},
decoration: InputDecoration(
hintText: L10().search,