Ожидается найти ')'. Не знаю, где разместить)Android

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Ожидается найти ')'. Не знаю, где разместить)

Сообщение Anonymous »

Нужно добавить отсутствующее), который коррелирует с «если» в коде. child: StreamBuilder(
stream:FirebaseFirestore.instance
.collection("chatRooms")
.where("users", arrayContains: nyUserId)
.snapshots()

builder: (context, snapshot) {
if(snapshot.hasError){
}

Return CircularProgressIndicator();
< /code>
} < /p>
if (snapshot.connectionState == ConnectionState.waiting) {
return Center(
child: Platform.isIOS
? const CupertinoActivityindicator()
: const CircularProgressIndicator(),
);
}else{
if (snapshot.data!.docs.length < 1) {
return Container(
height: _height - 200,
color: Colors.white,
child: Column(
mainAxislignment: MainAxisAlignment.center,
crossAxisAlignment:CrossAxisAlignment.center,
children: ]
container(
width: 200,
height: 200,
child: Image.asset(
'assets/images/chat.png',
),
),



Подробнее здесь: https://stackoverflow.com/questions/795 ... e-to-place
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»