fix textToFind
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
parent
00555a8e9e
commit
4651d9df68
@ -259,13 +259,13 @@ class _ConnectionPageState extends State<ConnectionPage>
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
String textWithoutSpaces = textEditingValue.text.replaceAll(" ", "");
|
String textWithoutSpaces = textEditingValue.text.replaceAll(" ", "");
|
||||||
String textToFind = textWithoutSpaces.toLowerCase();
|
|
||||||
if (int.tryParse(textWithoutSpaces) != null) {
|
if (int.tryParse(textWithoutSpaces) != null) {
|
||||||
textEditingValue = TextEditingValue(
|
textEditingValue = TextEditingValue(
|
||||||
text: textWithoutSpaces,
|
text: textWithoutSpaces,
|
||||||
selection: textEditingValue.selection,
|
selection: textEditingValue.selection,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
String textToFind = textEditingValue.text.toLowerCase();
|
||||||
|
|
||||||
return peers.where((peer) =>
|
return peers.where((peer) =>
|
||||||
peer.id.toLowerCase().contains(textToFind) ||
|
peer.id.toLowerCase().contains(textToFind) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user