chat

Chat bubble animation

你说的曾经没有我的故事 提交于 2020-06-26 14:39:30
问题 I want to achieve animation when I send my message it goes from bottom to top like flying a bird (though I have done it :P) but while flying, that chat bubble view's radius is also changing(This is the thing I am not able to achieve). Please help me to achieve this kind of animation or give me some sort of hint. Thank you I have used below code to set radius and then translate that view using xml file but not able to change radius on the go. GradientDrawable gd = new GradientDrawable(); //

Chat bubble animation

醉酒当歌 提交于 2020-06-26 14:39:13
问题 I want to achieve animation when I send my message it goes from bottom to top like flying a bird (though I have done it :P) but while flying, that chat bubble view's radius is also changing(This is the thing I am not able to achieve). Please help me to achieve this kind of animation or give me some sort of hint. Thank you I have used below code to set radius and then translate that view using xml file but not able to change radius on the go. GradientDrawable gd = new GradientDrawable(); //

How to use Getstream Rest API to get response in Postman?

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-17 09:42:17
问题 I am trying to implement Stream chat Rest APIs ( by following this link : https://getstream.io/chat/docs_rest ) provided by GetStream. So, I put the baseUrl and expected headers in following ways : Request Url : https://chat-us-east-1.stream-io-api.com/channeltypes These are the values which I put in Headers section of Postman : Authorization : <Getstream token (generating from setUser function) from backend> Stream-Auth-Type: jwt api_key : <Getstream API key> But I am getting this response

Flutter - ListView.builder: Initial scroll position

爱⌒轻易说出口 提交于 2020-05-29 17:13:49
问题 I want to setup the initial scroll position of a ListView.builder, I want the list to start at the bottom 0.0 If I setup reverse on the listView of course I get the initial scroll position to be the desired one, but what I need is to have the last children on the bottom, is a chat app. This is the list builder, MessageItem() is the chat message ListView.builder( shrinkWrap: true, controller: _scrollController, itemCount: snapshot.data.documents.length, padding: EdgeInsets.all(10.0),

Flutter - ListView.builder: Initial scroll position

南楼画角 提交于 2020-05-29 17:13:02
问题 I want to setup the initial scroll position of a ListView.builder, I want the list to start at the bottom 0.0 If I setup reverse on the listView of course I get the initial scroll position to be the desired one, but what I need is to have the last children on the bottom, is a chat app. This is the list builder, MessageItem() is the chat message ListView.builder( shrinkWrap: true, controller: _scrollController, itemCount: snapshot.data.documents.length, padding: EdgeInsets.all(10.0),