Closed Yaroslav-Zagumennikov closed 2 weeks ago
I had a problem when I was trying to track the result of a query _client?.send(const td.GetChats(limit: 10))
I used the following code to track the result, but the value of the variable is still empty I changed the code of the example file
if (_chats.isNotEmpty) Expanded( child: ListView.builder( itemCount: _chats.length, itemBuilder: (context, index) { final chat = _chats[index]; return ListTile( title: Text(chat.title ?? ''), subtitle: Text(chat.type.toString()), ); }, ), ),
Please check working example: https://github.com/ivk1800/telegram-flutter/blob/a1093fc75043c9c2b4e53fb986971b2014fc7f3a/core_tdlib_impl/lib/src/data_source/chat_data_source.dart#L72
I had a problem when I was trying to track the result of a query _client?.send(const td.GetChats(limit: 10))
I used the following code to track the result, but the value of the variable is still empty I changed the code of the example file