This condition:
@override
Widget build(context) {
return Scaffold(
appBar: buildSearchField(),
body:
searchResultsFuture == null ? buildNoCont() : buildSearchRes(),
);}}
throws this error:
The operand can't be null, so the condition is always false.
Try removing the condition, an enclosing condition, or the whole conditional statement.
It's declared like this:
late Future<QuerySnapshot> searchResultsFuture;
I'm already importing the cloud_firestore package.
I've tried everything that is available and still get this error, and I need to keep the condition.